From 48933cdf5f81887aab9187c90ed12b31008ecc0a Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 18 Nov 2021 23:02:03 +0100 Subject: [PATCH] [core] Minor fixes --- flaschengeist/config.py | 2 ++ flaschengeist/logging.toml | 2 +- flaschengeist/models/__init__.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/flaschengeist/config.py b/flaschengeist/config.py index 48c71b2..524ed6e 100644 --- a/flaschengeist/config.py +++ b/flaschengeist/config.py @@ -68,6 +68,8 @@ def configure_app(app, test_config=None): global config read_configuration(test_config) + configure_logger() + # Always enable this builtin plugins! update_dict( config, diff --git a/flaschengeist/logging.toml b/flaschengeist/logging.toml index 3af9f99..c9a5647 100644 --- a/flaschengeist/logging.toml +++ b/flaschengeist/logging.toml @@ -6,7 +6,7 @@ disable_existing_loggers = false [formatters] [formatters.simple] - format = "%(asctime)s - %(name)s (%(levelname)s) - %(message)s" + format = "%(asctime)s - %(levelname)s - %(message)s" [formatters.extended] format = "%(asctime)s — %(filename)s - %(funcName)s - %(lineno)d - %(threadName)s - %(name)s — %(levelname)s — %(message)s" diff --git a/flaschengeist/models/__init__.py b/flaschengeist/models/__init__.py index acffc1a..339a598 100644 --- a/flaschengeist/models/__init__.py +++ b/flaschengeist/models/__init__.py @@ -61,6 +61,7 @@ class UtcDateTime(TypeDecorator): aware value, even with SQLite or MySQL. """ + cache_ok = True impl = DateTime(timezone=True) @staticmethod