File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -570,11 +570,20 @@ def genCmpPayload():
570570 warnMsg = "user aborted during detection phase"
571571 logger .warn (warnMsg )
572572
573- msg = "how do you want to proceed? [(S)kip current test/(e)nd detection phase/(n)ext parameter/(q)uit]"
573+ msg = "how do you want to proceed? [(S)kip current test/(e)nd detection phase/(n)ext parameter/(c)hange verbosity/( q)uit]"
574574 choice = readInput (msg , default = "S" , checkBatch = False )
575575
576576 if choice [0 ] in ("s" , "S" ):
577577 pass
578+ elif choice [0 ] in ("c" , "C" ):
579+ choice = None
580+ while not ((choice or "" ).isdigit () and 0 <= int (choice ) <= 6 ):
581+ if choice :
582+ logger .warn ("invalid value" )
583+ msg = "enter new verbosity level: [0-6] "
584+ choice = readInput (msg , default = str (conf .verbose ), checkBatch = False ).strip ()
585+ conf .verbose = int (choice )
586+ setVerbosity ()
578587 elif choice [0 ] in ("n" , "N" ):
579588 return None
580589 elif choice [0 ] in ("e" , "E" ):
@@ -1239,3 +1248,6 @@ def checkConnection(suppressOutput=False):
12391248 raise
12401249
12411250 return True
1251+
1252+ def setVerbosity (): # Cross-linked function
1253+ raise NotImplementedError
Original file line number Diff line number Diff line change 1919import urllib2
2020import urlparse
2121
22+ import lib .controller .checks
2223import lib .core .common
2324import lib .core .threads
2425import lib .core .convert
@@ -2167,6 +2168,7 @@ def _resolveCrossReferences():
21672168 lib .core .common .getPageTemplate = getPageTemplate
21682169 lib .core .convert .singleTimeWarnMessage = singleTimeWarnMessage
21692170 lib .request .connect .setHTTPProxy = _setHTTPProxy
2171+ lib .controller .checks .setVerbosity = setVerbosity
21702172
21712173def initOptions (inputOptions = AttribDict (), overrideOptions = False ):
21722174 if not inputOptions .disableColoring :
You can’t perform that action at this time.
0 commit comments