Skip to content

Commit f85d6e1

Browse files
committed
log: json_formatter: remove taskName from extra
1 parent a2cdaae commit f85d6e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

enapter/log/json_formatter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
class JSONFormatter(json_log_formatter.JSONFormatter):
77
def json_record(self, message, extra, record):
8+
try:
9+
del extra["taskName"]
10+
except KeyError:
11+
pass
12+
813
json_record = {
914
"time": datetime.datetime.now(datetime.timezone.utc).isoformat(),
1015
"level": record.levelname[:4],

0 commit comments

Comments
 (0)