Skip to content

Commit 2bb3c18

Browse files
author
Alan Christie
committed
style: Log tweak
1 parent 124e918 commit 2bb3c18

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/app.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,10 @@
3333
_INGRESS_LOCATION: str = os.getenv("ESS_INGRESS_LOCATION", "localhost:8080")
3434
assert _INGRESS_LOCATION, "ESS_INGRESS_LOCATION environment variable must be set"
3535
_INGRESS_SECURE: bool = os.getenv("ESS_INGRESS_SECURE", "no").lower() == "yes"
36-
_LOGGER.info("INGRESS_LOCATION: %s", _INGRESS_LOCATION)
37-
_LOGGER.info("INGRESS_SECURE: %s", _INGRESS_SECURE)
3836

3937
_AMPQ_EXCHANGE: str = "event-streams"
4038
_AMPQ_URL: str = os.getenv("ESS_AMPQ_URL", "")
4139
assert _AMPQ_URL, "ESS_AMPQ_URL environment variable must be set"
42-
_LOGGER.info("AMPQ_URL: %s", _AMPQ_URL)
4340

4441
# SQLite database path
4542
_DATABASE_PATH = "/data/event-streams.db"
@@ -60,6 +57,10 @@
6057
_DB_CONNECTION.close()
6158
_LOGGER.info("Created.")
6259

60+
_LOGGER.info("INGRESS_LOCATION: %s", _INGRESS_LOCATION)
61+
_LOGGER.info("INGRESS_SECURE: %s", _INGRESS_SECURE)
62+
_LOGGER.info("AMPQ_URL: %s", _AMPQ_URL)
63+
6364

6465
# We use pydantic to declare the model (request payloads) for the internal REST API.
6566
# The public API is a WebSocket API and does not require a model.

logging.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"disable_existing_loggers": "true",
44
"formatters": {
55
"simple": {
6-
"format": "%(asctime)s.%(msecs)03dZ %(thread)d %(threadName)s %(module)s.%(funcName)s():%(lineno)d %(levelname)s # %(message)s",
6+
"format": "%(asctime)s.%(msecs)03dZ THREAD|%(thread)d %(module)s.%(funcName)s():%(lineno)d %(levelname)s # %(message)s",
77
"datefmt": "%Y-%m-%dT%H:%M:%S"
88
}
99
},

0 commit comments

Comments
 (0)