-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A horrible hack while we wait for trailofbits/manticore#1369 (#52)
- Loading branch information
Showing
2 changed files
with
69 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This is a horrible hack that is used to replace manticore.utils.log | ||
# Remove this once https://github.com/trailofbits/manticore/issues/1369 | ||
# is resolved. | ||
|
||
ETHENO_LOGGER = None | ||
|
||
@property | ||
def manticore_verbosity(): | ||
return ETHENO_LOGGER.log_level | ||
|
||
@property | ||
def DEFAULT_LOG_LEVEL(): | ||
return ETHENO_LOGGER.log_level | ||
|
||
def set_verbosity(setting): | ||
pass | ||
#global manticore_verbosity | ||
#manticore_verbosity = min(max(setting, 0), len(get_levels()) - 1) | ||
#for logger_name in all_loggers: | ||
# logger = logging.getLogger(logger_name) | ||
# # min because more verbosity == lower numbers | ||
# # This means if you explicitly call setLevel somewhere else in the source, and it's *more* | ||
# # verbose, it'll stay that way even if manticore_verbosity is 0. | ||
# logger.setLevel(min(get_verbosity(logger_name), logger.getEffectiveLevel())) | ||
|
||
all_loggers = set() |