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