mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
🔊 — Add level of log before the log message
This commit is contained in:
parent
4d806e11aa
commit
05a8a7bd2e
2 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
- 💄📯 — Improve notifications and result(s) pages
|
- 💄📯 — Improve notifications and result(s) pages
|
||||||
|
- 🔊 — Add level of log before the log message
|
||||||
|
|
||||||
## 0.1.1
|
## 0.1.1
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,9 @@ import logging
|
||||||
|
|
||||||
LOG_LEVELS = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
|
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.
|
# XXX We probably want different loggers for client and server.
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue