From ab3648e05d4d532800d9f4a6d1ecfbca28f8e3d8 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 12 Nov 2023 16:48:44 -0700 Subject: [PATCH] Add console logging back to Stator --- stator/management/commands/runstator.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stator/management/commands/runstator.py b/stator/management/commands/runstator.py index 9eb37ce..b18db79 100644 --- a/stator/management/commands/runstator.py +++ b/stator/management/commands/runstator.py @@ -62,6 +62,12 @@ class Command(BaseCommand): ): # Cache system config Config.system = Config.load_system() + logging.basicConfig( + format="[%(asctime)s] %(levelname)8s - %(message)s", + datefmt="%Y-%m-%d %H:%M:%S", + level=logging.INFO, + force=True, + ) # Resolve the models list into names models = cast( list[type[StatorModel]],