handled for TRACE

This commit is contained in:
Alex Groce
2018-12-22 14:34:24 -07:00
parent 6f168e8e1c
commit feec722f83
+3 -1
View File
@@ -43,7 +43,9 @@ LOG_LEVEL_FATAL = 6
LOGGER = logging.getLogger("deepstate")
LOGGER.setLevel(logging.DEBUG)
LOGGER.trace = 15
def logTrace(msg, *args, **kwargs):
logging.log(15, msg, args, kwargs)
LOGGER.trace = logTrace
LOG_LEVEL_TO_LOGGER = {
LOG_LEVEL_DEBUG: LOGGER.debug,