Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
fix: don't use dynamic logger name
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jun 28, 2022
1 parent 46cfe82 commit fde5c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jacdac/bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def __init__(self, *,
cfg = config["jacdac"]
device_id = device_id or cfg.get(
"device_id", rand_u64().hex())
logger_name = logger_name or cfg.get("logger_name", "jacdac.{}".format(short_id(device_id)))
logger_name = logger_name or cfg.get("logger_name", "jacdac")
self.logger = getLogger(logger_name)
self.product_identifier: Optional[int] = product_identifier or cfg.getint(
"product_identifier", None)
Expand Down

0 comments on commit fde5c28

Please sign in to comment.