mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-13 13:17:38 +02:00
use logging explicit constants
This commit is contained in:
@@ -198,9 +198,9 @@ class VolShell(cli.CommandLine):
|
||||
vollog.info("Logging started")
|
||||
|
||||
if partial_args.verbosity < 3:
|
||||
console.setLevel(30 - (partial_args.verbosity * 10))
|
||||
console.setLevel(logging.WARNING - (partial_args.verbosity * 10))
|
||||
else:
|
||||
console.setLevel(10 - (partial_args.verbosity - 2))
|
||||
console.setLevel(logging.DEBUG - (partial_args.verbosity - 2))
|
||||
|
||||
for level, msg in delayed_logs:
|
||||
vollog.log(level, msg)
|
||||
|
||||
Reference in New Issue
Block a user