[core] Minor fixes

This commit is contained in:
Ferdinand Thiessen 2021-11-18 23:02:03 +01:00
parent 7cb31bf60e
commit 48933cdf5f
3 changed files with 4 additions and 1 deletions

View File

@ -68,6 +68,8 @@ def configure_app(app, test_config=None):
global config global config
read_configuration(test_config) read_configuration(test_config)
configure_logger()
# Always enable this builtin plugins! # Always enable this builtin plugins!
update_dict( update_dict(
config, config,

View File

@ -6,7 +6,7 @@ disable_existing_loggers = false
[formatters] [formatters]
[formatters.simple] [formatters.simple]
format = "%(asctime)s - %(name)s (%(levelname)s) - %(message)s" format = "%(asctime)s - %(levelname)s - %(message)s"
[formatters.extended] [formatters.extended]
format = "%(asctime)s — %(filename)s - %(funcName)s - %(lineno)d - %(threadName)s - %(name)s — %(levelname)s — %(message)s" format = "%(asctime)s — %(filename)s - %(funcName)s - %(lineno)d - %(threadName)s - %(name)s — %(levelname)s — %(message)s"

View File

@ -61,6 +61,7 @@ class UtcDateTime(TypeDecorator):
aware value, even with SQLite or MySQL. aware value, even with SQLite or MySQL.
""" """
cache_ok = True
impl = DateTime(timezone=True) impl = DateTime(timezone=True)
@staticmethod @staticmethod