Skip to content

Commit 7ab2b78

Browse files
committed
Test Sentry logging from WebSocket app
1 parent 47cb114 commit 7ab2b78

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

h/streamer/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
from logging import getLogger
2+
13
import pyramid
24

35
from h._version import get_version
46
from h.config import configure
57
from h.security import StreamerPolicy
68
from h.sentry_filters import SENTRY_ERROR_FILTERS
79

10+
log = getLogger(__name__)
11+
812

913
def create_app(_global_config, **settings):
1014
config = configure(settings=settings)
@@ -60,8 +64,8 @@ def create_app(_global_config, **settings):
6064
"h_pyramid_sentry.init.enable_logs": True,
6165
}
6266
)
63-
6467
config.include("h_pyramid_sentry")
68+
log.info("WebSocket app has configured Sentry")
6569

6670
# Add support for logging exceptions whenever they arise
6771
config.include("pyramid_exclog")

0 commit comments

Comments
 (0)