summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/__init__.py')
-rw-r--r--gnuradio-runtime/python/gnuradio/gr/__init__.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/__init__.py b/gnuradio-runtime/python/gnuradio/gr/__init__.py
index 5103bf97a7..0715a641ea 100644
--- a/gnuradio-runtime/python/gnuradio/gr/__init__.py
+++ b/gnuradio-runtime/python/gnuradio/gr/__init__.py
@@ -1,5 +1,6 @@
#
# Copyright 2003-2012, 2018 Free Software Foundation, Inc.
+# Copyright 2021 Marcus Müller
#
# This file is part of GNU Radio
#
@@ -39,19 +40,7 @@ from .gateway import basic_block, sync_block, decim_block, interp_block, py_io_s
log = gr.logger("log")
log.set_level(prefs().get_string("LOG", "log_level", "notset"))
-log_file = gr.prefs().get_string("LOG", "log_file", "");
-if(log_file == "stderr" or log_file == "stdout"):
- log.add_console_appender(log_file, "gr::log %d :%p: %m%n")
-else:
- log.add_file_appender(log_file, True, "%r :%p: %c{1} - %m%n")
-
log_debug = gr.logger("log_debug")
-log_debug.set_level(prefs().get_string("LOG", "debug_level", "notset"))
-log_debug_file = gr.prefs().get_string("LOG", "debug_file", "");
-if(log_debug_file == "stderr" or log_file == "stdout"):
- log_debug.add_console_appender(log_debug_file, "gr::log %d :%p: %m%n")
-else:
- log_debug.add_file_appender(log_debug_file, True, "%r :%p: %c{1} - %m%n")
io_signaturev = io_signature.makev
io_signature3 = io_signature.make3