Files
authentik/passbook/lib/logging.py
2020-02-24 14:10:58 +01:00

10 lines
225 B
Python

"""logging helpers"""
from os import getpid
# pylint: disable=unused-argument
def add_process_id(logger, method_name, event_dict):
"""Add the current process ID"""
event_dict["pid"] = getpid()
return event_dict