mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-09 08:09:01 +00:00
Increased default output level from 0 to 1
This commit is contained in:
@@ -612,7 +612,7 @@ def __saveCmdline():
|
||||
if datatype == "boolean":
|
||||
value = "False"
|
||||
elif datatype in ( "integer", "float" ):
|
||||
if option == "threads":
|
||||
if option in ( "threads", "verbose" ):
|
||||
value = "1"
|
||||
else:
|
||||
value = "0"
|
||||
@@ -635,13 +635,12 @@ def __setVerbosity():
|
||||
This function set the verbosity of sqlmap output messages.
|
||||
"""
|
||||
|
||||
if not conf.verbose:
|
||||
conf.verbose = 0
|
||||
return
|
||||
if conf.verbose == None:
|
||||
conf.verbose = 1
|
||||
|
||||
conf.verbose = int(conf.verbose)
|
||||
|
||||
if conf.verbose <= 1:
|
||||
if conf.verbose == 1:
|
||||
logger.setLevel(logging.INFO)
|
||||
elif conf.verbose > 1 and conf.eta:
|
||||
conf.verbose = 1
|
||||
|
||||
@@ -244,7 +244,7 @@ def cmdLineParser():
|
||||
"in real time")
|
||||
|
||||
miscellaneous.add_option("-v", dest="verbose", type="int",
|
||||
help="Verbosity level: 0-5 (default 0)")
|
||||
help="Verbosity level: 0-5 (default 1)")
|
||||
|
||||
miscellaneous.add_option("--update", dest="updateAll", action="store_true",
|
||||
help="Update sqlmap to the latest stable version")
|
||||
|
||||
Reference in New Issue
Block a user