Skip to content

Commit

Permalink
Add asim formatter (pt 2) (#533)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Co-authored-by: Marcel Kornblum <[email protected]>
  • Loading branch information
3 people authored Jan 8, 2024
1 parent 62730f0 commit 42930c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions src/config/settings/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 42930c1

Please sign in to comment.