Skip to content

Commit d0443b9

Browse files
committed
Enable Sentry logs for WebSocket app
1 parent 00a3d8d commit d0443b9

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

h/streamer/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def create_app(_global_config, **settings):
5757
# For the full list of options that sentry_sdk.init() supports see:
5858
# https://docs.sentry.io/platforms/python/configuration/options/
5959
"h_pyramid_sentry.init.release": get_version(),
60+
"h_pyramid_sentry.init.enable_logs": True,
6061
}
6162
)
6263

tests/unit/h/streamer/app_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ def test_it_configures_pyramid_sentry_plugin(self, config, get_version):
1616
{
1717
"h_pyramid_sentry.filters": SENTRY_ERROR_FILTERS,
1818
"h_pyramid_sentry.celery_support": True,
19+
"h_pyramid_sentry.sqlalchemy_support": True,
1920
"h_pyramid_sentry.init.release": get_version.return_value,
21+
"h_pyramid_sentry.init.enable_logs": True,
2022
}
2123
)
2224

0 commit comments

Comments
 (0)