Skip to content

Commit

Permalink
upgrade pypeline to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
brondsem committed Nov 25, 2024
1 parent 7741847 commit 6dcdb6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions Allura/allura/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,14 @@ def format(self, record):
context of a taskd process that is currently processing a task.
"""
title = getproctitle()
if title.startswith('taskd:'):
record.name = f"{title}:{record.name}"
try:
title = getproctitle()
except SystemError:
# can happen when logging happens during process shutdown
pass
else:
if title.startswith('taskd:'):
record.name = f"{title}:{record.name}"
return super().format(record)


Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pymongo-auth-aws==1.3.0
# via pymongo
pymongocrypt==1.11.0
# via pymongo
pypeline[creole,markdown,rst,textile]==0.6.1
pypeline[creole,markdown,rst,textile]==0.7.0
# via -r requirements.in
pysolr==3.10.0
# via -r requirements.in
Expand Down

0 comments on commit 6dcdb6e

Please sign in to comment.