Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

webhooks: Add a missing format for the realm.

Alex Vandiverb515c2bcbfb1
diff --git a/zerver/lib/logging_util.py b/zerver/lib/logging_util.py
index b4d669b708f..7c0bd1aaf2e 100644
--- a/zerver/lib/logging_util.py
+++ b/zerver/lib/logging_util.py
@@ -259,7 +259,7 @@ class ZulipWebhookFormatter(ZulipFormatter):
header_message = header_text if header_text else None
- setattr(record, 'user', f"{request.user.delivery_email} (request.user.realm.string_id)")
+ setattr(record, 'user', f"{request.user.delivery_email} ({request.user.realm.string_id})")
setattr(record, 'client', request.client.name)
setattr(record, 'url', request.META.get('PATH_INFO', None))
setattr(record, 'content_type', request.content_type)