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:
parent
0eef9b3061
commit
bed2f89964
5
main.py
5
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,8 +45,7 @@ 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,
|
||||||
enable_tracing=True,
|
enable_tracing=True,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user