MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / restartLoggingInUpdatedAppdataLocation

Function restartLoggingInUpdatedAppdataLocation

src/debug.py:108–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 logger = logging.getLogger('default')
107
108def restartLoggingInUpdatedAppdataLocation():
109 global logger
110 for i in list(logger.handlers):
111 logger.removeHandler(i)
112 i.flush()
113 i.close()
114 if configureLogging():
115 if '-c' in sys.argv:
116 logger = logging.getLogger('file_only')
117 else:
118 logger = logging.getLogger('both')
119 else:
120 logger = logging.getLogger('default')
121

Callers

nothing calls this directly

Calls 3

configureLoggingFunction · 0.85
flushMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected