🔊 — Add level of log before the log message

This commit is contained in:
Luc Didry 2024-05-27 15:25:06 +02:00
parent 4d806e11aa
commit 05a8a7bd2e
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C
2 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,7 @@
## [Unreleased]
- 💄📯 — Improve notifications and result(s) pages
- 🔊 — Add level of log before the log message
## 0.1.1

View file

@ -2,6 +2,9 @@ import logging
LOG_LEVELS = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
# Print level before message
logging.basicConfig(format="%(levelname)s: %(message)s")
# XXX We probably want different loggers for client and server.
logger = logging.getLogger(__name__)