Add set_verbosity to the documentation (#1688)

Co-authored-by: Eric Hennenfent <[email protected]>
This commit is contained in:
Langston Barrett
2020-05-04 15:41:09 -07:00
committed by GitHub
co-authored by Eric Hennenfent
parent 4b26ced556
commit 2b04eeee5c
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ Manticore is a symbolic execution tool for analysis of binaries and smart contra
wasm
plugins
gotchas
utilities
Indices and tables
+7
View File
@@ -0,0 +1,7 @@
Utilities
---------
Logging
^^^^^^^
.. autofunction:: manticore.utils.log.set_verbosity
+1
View File
@@ -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: