pySimLogger: user __name__ of the module when creating a new logger

At the moment we use random identifiers as names when we create a
new logger for pySimLogger. Let's switch to consistently use the
module name here. For the top level modules let's use the program
name so that it will show up in the log instead of __init__.

Change-Id: I49a9beb98845f66247edd42ed548980c97a7151a
This commit is contained in:
Philipp Maier
2026-01-20 12:42:16 +01:00
parent 167d6aca36
commit 2b42877389
7 changed files with 13 additions and 13 deletions

View File

@@ -38,7 +38,7 @@ import csv
import logging
import yaml
log = PySimLogger.get("CARDKEY")
log = PySimLogger.get(__name__)
card_key_providers = [] # type: List['CardKeyProvider']