diff options
author | 2021-03-14 10:45:36 +0300 | |
---|---|---|
committer | 2021-03-15 02:16:24 +0300 | |
commit | a423419eca285d0b23ad3f31956297851a608d22 (patch) | |
tree | da008db807af16fc58c1910fad6367d4e91aef66 /backend/__init__.py | |
parent | Use .gitattributes to normalise line endings (diff) |
Adds Logging Support
Adds formatters and handlers for logging.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'backend/__init__.py')
-rw-r--r-- | backend/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/__init__.py b/backend/__init__.py index 220b457..f8b0afe 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -1,3 +1,5 @@ +import logging + import sentry_sdk from sentry_sdk.integrations.asgi import SentryAsgiMiddleware from starlette.applications import Starlette @@ -6,6 +8,7 @@ from starlette.middleware.authentication import AuthenticationMiddleware from starlette.middleware.cors import CORSMiddleware from backend import constants +from backend import logs # This has to be imported before other logging statements from backend.authentication import JWTAuthenticationBackend from backend.middleware import DatabaseMiddleware, ProtectedDocsMiddleware from backend.route_manager import create_route_map |