mirror of
https://github.com/trailofbits/manticore.git
synced 2026-10-12 02:23:44 +00:00
Add set_verbosity to the documentation (#1688)
Co-authored-by: Eric Hennenfent <[email protected]>
This commit is contained in:
co-authored by
Eric Hennenfent
parent
4b26ced556
commit
2b04eeee5c
@@ -17,6 +17,7 @@ Manticore is a symbolic execution tool for analysis of binaries and smart contra
|
||||
wasm
|
||||
plugins
|
||||
gotchas
|
||||
utilities
|
||||
|
||||
|
||||
Indices and tables
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
Utilities
|
||||
---------
|
||||
|
||||
Logging
|
||||
^^^^^^^
|
||||
|
||||
.. autofunction:: manticore.utils.log.set_verbosity
|
||||
@@ -149,6 +149,7 @@ def get_verbosity(logger_name: str) -> int:
|
||||
|
||||
|
||||
def set_verbosity(setting: int) -> None:
|
||||
"""Set the global verbosity (0-5)."""
|
||||
global manticore_verbosity
|
||||
manticore_verbosity = min(max(setting, 0), len(get_levels()) - 1)
|
||||
for logger_name in all_loggers:
|
||||
|
||||
Reference in New Issue
Block a user