This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/passbook/lib/logging.py

10 lines
225 B
Python
Raw Normal View History

2020-02-24 12:16:05 +00:00
"""logging helpers"""
from os import getpid
# pylint: disable=unused-argument
def add_process_id(logger, method_name, event_dict):
"""Add the current process ID"""
2020-02-24 13:10:58 +00:00
event_dict["pid"] = getpid()
2020-02-24 12:16:05 +00:00
return event_dict