debug: main.py with import sentry-sdk
All checks were successful
Deploy to core / deploy (push) Successful in 1m38s
All checks were successful
Deploy to core / deploy (push) Successful in 1m38s
This commit is contained in:
3
main.py
3
main.py
@@ -1,7 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
|
import sentry_sdk
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
from os.path import exists
|
from os.path import exists
|
||||||
import sentry_sdk
|
|
||||||
|
|
||||||
from ariadne import load_schema_from_path, make_executable_schema
|
from ariadne import load_schema_from_path, make_executable_schema
|
||||||
from ariadne.asgi import GraphQL
|
from ariadne.asgi import GraphQL
|
||||||
@@ -45,7 +45,6 @@ async def start_up():
|
|||||||
if MODE == 'production':
|
if MODE == 'production':
|
||||||
# sentry monitoring
|
# sentry monitoring
|
||||||
try:
|
try:
|
||||||
import sentry_sdk
|
|
||||||
|
|
||||||
sentry_sdk.init(
|
sentry_sdk.init(
|
||||||
SENTRY_DSN,
|
SENTRY_DSN,
|
||||||
|
|||||||
Reference in New Issue
Block a user