Skip to content

Commit

Permalink
Add set_verbosity to the documentation (#1688)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Hennenfent <[email protected]>
  • Loading branch information
langston-barrett and Eric Hennenfent authored May 4, 2020
1 parent 4b26ced commit 2b04eee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Manticore is a symbolic execution tool for analysis of binaries and smart contra
wasm
plugins
gotchas
utilities


Indices and tables
Expand Down
7 changes: 7 additions & 0 deletions docs/utilities.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Utilities
---------

Logging
^^^^^^^

.. autofunction:: manticore.utils.log.set_verbosity
1 change: 1 addition & 0 deletions manticore/utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def match(name: str, pattern: str):


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:
Expand Down

0 comments on commit 2b04eee

Please sign in to comment.