Skip to content

Commit

Permalink
Attempt to resolve "Attempt to overwrite name in LogRecord" error
Browse files Browse the repository at this point in the history
  • Loading branch information
dpup committed Sep 16, 2024
1 parent 840e50a commit e876926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check-mate.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ def onReceive(self, packet, interface):
if channel == 0:
self.logger.info(
"Ignoring message to default channel",
extra={"name": name, "text": text},
extra={"userName": name, "text": text},
)
return

if not re.search(r"(mesh|radio)\s*check", text, re.IGNORECASE):
self.logger.info(
"Not a radio check",
extra={"name": name, "channel": channel, "text": text},
extra={"userName": name, "channel": channel, "text": text},
)
return

Expand Down

0 comments on commit e876926

Please sign in to comment.