Skip to content

Commit

Permalink
BF: Improved logging performance #1112
Browse files Browse the repository at this point in the history
  • Loading branch information
detlefarend committed Dec 9, 2024
1 parent 4123883 commit 1ff2486
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mlpro/bf/various.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ def __init__(self, p_logging=C_LOG_ALL):
self.C_LOG_TYPE_S: self.C_COL_SUCCESS,
}

self._write = sys.stdout.write

self._switch_logging( p_logging=p_logging )

if self.C_INST_MSG:
Expand Down Expand Up @@ -258,7 +256,7 @@ def _log_on(self, p_type, *p_args):
now = datetime.now().isoformat( sep = ' ' )
col = self._color_map.get(p_type, self.C_COL_RESET)
arg_str = ' '.join(map(str, p_args))
self._write( col + now + ' ' + p_type + ' ' + self.C_TYPE + ' "' + self.C_NAME + '": ' + arg_str + self.C_COL_RESET + '\n' )
print( col + now + ' ' + p_type + ' ' + self.C_TYPE + ' "' + self.C_NAME + '": ' + arg_str + self.C_COL_RESET )



Expand Down

0 comments on commit 1ff2486

Please sign in to comment.