Skip to content

Commit fbbae31

Browse files
committed
Fix application of specified logging level in application.py
(before the logging level was "UNSET" resulting in "DEBUG" messages not being printed) Signed-off-by: HaHeho <[email protected]>
1 parent 9568752 commit fbbae31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pybinsim/application.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ class BinSim(object):
122122
def __init__(self, config_file):
123123

124124
self.log = logging.getLogger("pybinsim.BinSim")
125-
self.log.info("BinSim: init")
125+
self.log.setLevel(self.log.parent.level)
126+
self.log.info(f"BinSim: init (logging level {logging.getLevelName(self.log.level)})")
126127

127128
self.cpu_usage_update_rate = 100
128129
self.time_usage = np.zeros(self.cpu_usage_update_rate-1, dtype='float32')

0 commit comments

Comments
 (0)