Skip to content

Commit

Permalink
Include PID on talisker logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkfran committed Jan 7, 2022
1 parent a5b8f74 commit a0084b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.9.3 (2021-10-27)

Include PID on Talisker logs

# 0.9.2 (2021-10-27)

Check static files against provided `?v=` hashes
Expand Down
4 changes: 3 additions & 1 deletion canonicalwebteam/flask_base/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ def __init__(
self.context_processor(base_context)

talisker.flask.register(self)
talisker.logs.set_global_extra({"service": self.service})
talisker.logs.set_global_extra(
{"service": self.service, "pid": os.getpid()}
)

# Default error handlers
if template_404:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="canonicalwebteam.flask-base",
version="0.9.2",
version="0.9.3",
description=(
"Flask extension that applies common configurations"
"to all of webteam's flask apps."
Expand Down

0 comments on commit a0084b2

Please sign in to comment.