diff --git a/gateway/platforms/base.py b/gateway/platforms/base.py index 5ded48a18ca..31914b5861e 100644 --- a/gateway/platforms/base.py +++ b/gateway/platforms/base.py @@ -4955,8 +4955,11 @@ class BasePlatformAdapter(ABC): ), metadata=_thread_metadata, ) - except Exception: - pass # Last resort — don't let error reporting crash the handler + except Exception as notify_err: + logger.error( + "[%s] Failed to send error notification to user: %s", + self.name, notify_err, exc_info=True, + ) # Last resort — don't let error reporting crash the handler finally: # Stop typing before any deferred callback work. Post-delivery # callbacks may perform platform I/O; a stuck callback must not diff --git a/infographic/gateway-error-notify-logging/infographic.png b/infographic/gateway-error-notify-logging/infographic.png new file mode 100644 index 00000000000..c59f8785cf7 Binary files /dev/null and b/infographic/gateway-error-notify-logging/infographic.png differ