summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-10-26 09:16:35 -0400
committerPeter LaFosse <peter@vector35.com>2021-11-05 10:30:12 -0400
commitecd68aec257e786671481210c3f209fd77d97525 (patch)
tree09dbb9ca871d8bf7e4c1ecc2936ddd8280a856db /python/__init__.py
parenteacbbc9a3f955b21ea50a1ae49747d4df6498670 (diff)
Backward compatible workaround for log import
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 6b16a463..711ed550 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -39,7 +39,6 @@ from .transform import *
from .architecture import *
from .basicblock import *
from .function import *
-from .log import *
from .lowlevelil import *
from .mediumlevelil import *
from .highlevelil import *
@@ -67,6 +66,12 @@ from .websocketprovider import *
from .workflow import *
from .commonil import *
from .database import *
+# We import each of these by name to prevent conflicts between
+# log.py and the function 'log' which we don't import below
+from .log import (redirect_output_to_log, is_output_redirected_to_log,
+ log_debug, log_info, log_warn, log_error, log_alert,
+ log_to_stdout, log_to_stderr, log_to_file, close_logs)
+from .log import log as log_at_level
def shutdown():