diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-09-05 12:30:47 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-06 11:46:44 -0400 |
| commit | 7070c4efa14e8816d5c429c5c92bf1ad9a4f30eb (patch) | |
| tree | a0c5b6b12db79117fe0802d55adc60fc02b91775 /python/debuginfo.py | |
| parent | 6d279124d1ee8c03dec6938f8a4ebb08f646b4c2 (diff) | |
Fix import of log
Diffstat (limited to 'python/debuginfo.py')
| -rw-r--r-- | python/debuginfo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/debuginfo.py b/python/debuginfo.py index bafc977c..1c23542c 100644 --- a/python/debuginfo.py +++ b/python/debuginfo.py @@ -29,7 +29,7 @@ from . import _binaryninjacore as core from . import callingconvention from . import platform from . import types as _types -from . import log +from .log import log_error from . import binaryview from . import filemetadata @@ -102,7 +102,7 @@ class _DebugInfoParserMetaClass(type): view_obj = binaryview.BinaryView(file_metadata = file_metadata, handle = core.BNNewViewReference(view)) return callback(view_obj) except: - log.log_error(traceback.format_exc()) + log_error(traceback.format_exc()) return False @staticmethod @@ -114,7 +114,7 @@ class _DebugInfoParserMetaClass(type): assert parser_ref is not None, "core.BNNewDebugInfoReference returned None" callback(DebugInfo(parser_ref), view_obj) except: - log.log_error(traceback.format_exc()) + log_error(traceback.format_exc()) @classmethod def register(cls, name: str, is_valid: Callable[['binaryview.BinaryView'], bool], parse_info: Callable[["DebugInfo", 'binaryview.BinaryView'], None]) -> "DebugInfoParser": |
