Skip to content

Commit

Permalink
v0.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
xliee authored Sep 2, 2023
1 parent bdcca35 commit cb45a5b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion xliee_sentry_telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"""


__version__ = '0.6.6'
__version__ = '0.6.7'
__author__ = 'Xliee'

10 changes: 10 additions & 0 deletions xliee_sentry_telegram/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,19 @@ def get_config(self, project, **kwargs):
def build_message(self, group, event):
the_tags = defaultdict(lambda: '[NA]')
the_tags.update({k:v for k, v in event.tags})
user = {
'ip': '[NA]',
'username': '[NA]'
}
if event['ip_address']:
user['ip'] = event['ip_address']
if event['username']:
user['username'] = event['username']

names = {
'title': event.title,
'tag': the_tags,
'user': user,
'message': event.message,
'culprit': group.culprit,
'project_name': group.project.name,
Expand Down

0 comments on commit cb45a5b

Please sign in to comment.