Skip to content

Commit c7c8068

Browse files
Fixed Debug Mode
1 parent c1a4ee4 commit c7c8068

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Versions should comply with PEP440. For a discussion on single-sourcing
99
# the version across setup.py and the project code, see
1010
# https://packaging.python.org/en/latest/single_source_version.html
11-
version="0.0.2",
11+
version="0.0.3",
1212
packages=[
1313
"sentry",
1414
"sentry.config",

src/sentry/Sentry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
from .loggers.SentryQueueLogger import SentryQueryLogger
66
from .listeners.SentryExceptionListener import SentryExceptionListener
7+
from masonite.environment import env
78

89

910
class Sentry:
1011
def __init__(self, application) -> None:
1112
self.app = application
1213
self.sentry_config = config("sentry")
1314

14-
# if not env("APP_DEBUG"):
15-
# self.setup()
16-
self.setup()
15+
if not env("APP_DEBUG"):
16+
self.setup()
1717

1818
def setup(self):
1919
sentry_sdk.init(

0 commit comments

Comments
 (0)