Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.9.3 - Include PID on talisker logs #53

Merged
merged 1 commit into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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