diff --git a/hbd/server/notify.py b/hbd/server/notify.py index c3f53b5..03957f0 100644 --- a/hbd/server/notify.py +++ b/hbd/server/notify.py @@ -15,6 +15,7 @@ their own ``notification_channels`` list. When no users are configured the server runs silently (no notifications sent). """ +import asyncio import asyncio import logging import smtplib @@ -29,6 +30,8 @@ from . import ws as ws_mod logger = logging.getLogger(__name__) +logger = logging.getLogger(__name__) + msg_to_websockets = ws_mod.broadcast # Module-level state set via setup()