From 42930c14f54b53138a402bd427be1e2f1b956c98 Mon Sep 17 00:00:00 2001 From: Gabe Naughton Date: Mon, 8 Jan 2024 10:48:12 +0000 Subject: [PATCH] Add asim formatter (pt 2) (#533) Latest image is deployed in[ ECR](https://eu-west-2.console.aws.amazon.com/ecr/repositories/private/854321987474/intranet/digital-workspace?region=eu-west-2), but not seeing ASIM logs coming through. Don't believe build settings are being used in the container when I exec into it. Hoping this change should fix --------- Co-authored-by: Cameron Lamb Co-authored-by: Marcel Kornblum --- src/config/settings/base.py | 3 +++ src/config/settings/build.py | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config/settings/base.py b/src/config/settings/base.py index 713445142..76509a938 100644 --- a/src/config/settings/base.py +++ b/src/config/settings/base.py @@ -578,6 +578,9 @@ }, } +if is_copilot(): + LOGGING["handlers"]["ecs"]["formatter"] = "asim_formatter" + # Remove SSO protection from health check and Hawk authed URLs AUTHBROKER_ANONYMOUS_PATHS = ( "/pingdom/ping.xml", diff --git a/src/config/settings/build.py b/src/config/settings/build.py index 91c8774db..450a31cc4 100644 --- a/src/config/settings/build.py +++ b/src/config/settings/build.py @@ -3,5 +3,3 @@ APP_ENV = "build" SEARCH_ENABLE_QUERY_CACHE = False # Don't access Redis at build time - -LOGGING["handlers"]["ecs"]["formatter"] = "asim_formatter" # noqa F405