DPP/DLT functionality #36
|
@ -31,10 +31,13 @@ class CustomFormatter(logging.Formatter):
|
||||||
# Highlight the final formatted message
|
# Highlight the final formatted message
|
||||||
record.msg = self.highlight_message(record.msg, color)
|
record.msg = self.highlight_message(record.msg, color)
|
||||||
|
|
||||||
# provide trace when DEBUG config
|
# pedro says: I discovered that trace is provided anyway with
|
||||||
if settings.DEBUG:
|
# this commented (reason: strange None msgs)
|
||||||
import traceback
|
# is this needed?
|
||||||
print(traceback.format_exc())
|
### provide trace when DEBUG config
|
||||||
|
#if settings.DEBUG:
|
||||||
|
# import traceback
|
||||||
|
# print(traceback.format_exc())
|
||||||
|
|
||||||
return super().format(record)
|
return super().format(record)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue