Skip to content

Commit 44a2a8e

Browse files
committed
Expand initialisation logging to show state
1 parent 872d127 commit 44a2a8e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packet/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
app_auth_key=app.config['ONESIGNAL_CSH_APP_AUTH_KEY'],
6060
app_id=app.config['ONESIGNAL_CSH_APP_ID']
6161
)
62+
app.logger.info('CSH Onesignal configured and notifications enabled')
6263

6364
intro_onesignal_client = None
6465
if app.config['ONESIGNAL_USER_AUTH_KEY'] and \
@@ -69,17 +70,18 @@
6970
app_auth_key=app.config['ONESIGNAL_INTRO_APP_AUTH_KEY'],
7071
app_id=app.config['ONESIGNAL_INTRO_APP_ID']
7172
)
73+
app.logger.info('Intro Onesignal configured and notifications enabled')
7274

7375
# OIDC Auth
7476
auth = OIDCAuthentication({'app': APP_CONFIG}, app)
77+
app.logger.info('OIDCAuth configured')
7578

7679
# Sentry
7780
sentry_sdk.init(
7881
dsn=app.config['SENTRY_DSN'],
7982
integrations=[FlaskIntegration(), SqlalchemyIntegration()]
8083
)
8184

82-
app.logger.info('OIDCAuth and LDAP configured')
8385

8486
# pylint: disable=wrong-import-position
8587
from .ldap import ldap

packet/ldap.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ class LDAPWrapper:
3939
def __init__(self, cshldap=None, mock_members=None):
4040
self.ldap = cshldap
4141
self.mock_members = mock_members
42+
if self.ldap:
43+
app.logger.info('LDAP configured with CSH LDAP')
44+
else:
45+
app.logger.info('LDAP configured with local mock')
4246

4347

4448
def _get_group_members(self, group):

0 commit comments

Comments
 (0)