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.
|
"""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["pdi"] = getpid()
|
|
return event_dict
|