diff --git a/changelog.d/125.misc b/changelog.d/125.misc new file mode 100644 index 00000000..b053f6a3 --- /dev/null +++ b/changelog.d/125.misc @@ -0,0 +1 @@ +Improve logging if a pushkin cannot be created. diff --git a/sygnal/sygnal.py b/sygnal/sygnal.py index 969d27dd..963254e7 100644 --- a/sygnal/sygnal.py +++ b/sygnal/sygnal.py @@ -190,9 +190,10 @@ async def _make_pushkins_then_start(self, port, bind_addresses, pushgateway_api) try: self.pushkins[app_id] = await self._make_pushkin(app_id, app_cfg) except Exception: - raise RuntimeError( - "Failed to load and create pushkin for kind %s", app_cfg["type"] + logger.error( + "Failed to load and create pushkin for kind '%s'" % app_cfg["type"] ) + raise if len(self.pushkins) == 0: raise RuntimeError(