184
184
global _stderr_handler, _file_handler
186
186
_stderr_handler = logging.StreamHandler()
189
188
open_tracefile() # also adds it
199
199
fmt = '%(levelname)8s: %(message)s'
200
200
_stderr_handler.setFormatter(logging.Formatter(fmt))
203
208
# show only summary of exceptions
209
210
logging.getLogger('').addHandler(_stderr_handler)