Increased default output level from 0 to 1

This commit is contained in:
Bernardo Damele
2008-12-01 23:07:41 +00:00
parent 428612b431
commit 3cf1658532
4 changed files with 11 additions and 11 deletions

View File

@@ -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

View File

@@ -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")