This is an automated email from the ASF dual-hosted git repository.
tn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new 3c5fdd9 clean up logging configuration
3c5fdd9 is described below
commit 3c5fdd93ed9cd5febf866f03705c17297734a18d
Author: Thomas Neidhart <[email protected]>
AuthorDate: Thu Apr 3 21:32:47 2025 +0200
clean up logging configuration
---
atr/manager.py | 7 -------
atr/server.py | 4 ----
2 files changed, 11 deletions(-)
diff --git a/atr/manager.py b/atr/manager.py
index 0d6195a..0c27f92 100644
--- a/atr/manager.py
+++ b/atr/manager.py
@@ -33,13 +33,6 @@ import sqlmodel
import atr.db as db
import atr.db.models as models
-# Configure logging
-logging.basicConfig(
- format="[%(asctime)s.%(msecs)03d] [%(levelname)s] %(message)s",
- level=logging.INFO,
- datefmt="%Y-%m-%d %H:%M:%S",
-)
-
_LOGGER: Final = logging.getLogger(__name__)
# Global debug flag to control worker process output capturing
diff --git a/atr/server.py b/atr/server.py
index 3c29953..19ffc0f 100644
--- a/atr/server.py
+++ b/atr/server.py
@@ -180,10 +180,6 @@ def app_setup_lifecycle(app: base.QuartApp) -> None:
def app_setup_logging(app: base.QuartApp, config_mode: config.Mode,
app_config: type[config.AppConfig]) -> None:
"""Setup application logging."""
- # remove any existing handlers, hypercorn might have set them up already
- for handler in logging.root.handlers:
- logging.root.removeHandler(handler)
-
logging.basicConfig(
format="[%(asctime)s.%(msecs)03d ] [%(process)d] %(message)s",
level=logging.INFO,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]