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