Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Postal Owl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
Postal Owl
Commits
bbc6735b
Commit
bbc6735b
authored
9 months ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Error e-mails contain UID if known
Closes #99.
parent
bed1a363
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
owl/error_mail.py
+3
-1
3 additions, 1 deletion
owl/error_mail.py
with
3 additions
and
1 deletion
owl/error_mail.py
+
3
−
1
View file @
bbc6735b
...
...
@@ -3,7 +3,7 @@
import
datetime
import
email.message
import
email.headerregistry
from
flask
import
Flask
,
request
from
flask
import
Flask
,
request
,
g
import
subprocess
import
token_bucket
import
traceback
...
...
@@ -25,6 +25,8 @@ def log_flask_exception(app: Flask, exc_info) -> None:
'
Referrer
'
:
request
.
referrer
,
'
Client
'
:
request
.
remote_addr
,
}
if
hasattr
(
g
,
'
uid
'
):
attrs
[
'
UID
'
]
=
g
.
uid
log_exception
(
app
,
request
.
path
,
attrs
,
exc_info
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment