9568f4dbd6
* cleanup pylint comments Signed-off-by: Jens Langhammer <jens@goauthentik.io> * remove more Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix url name Signed-off-by: Jens Langhammer <jens@goauthentik.io> * *: use ExtractHour instead of ExtractDay Signed-off-by: Jens Langhammer <jens@goauthentik.io> Signed-off-by: Jens Langhammer <jens@goauthentik.io>
10 lines
231 B
Python
10 lines
231 B
Python
"""logging helpers"""
|
|
from logging import Logger
|
|
from os import getpid
|
|
|
|
|
|
def add_process_id(logger: Logger, method_name: str, event_dict):
|
|
"""Add the current process ID"""
|
|
event_dict["pid"] = getpid()
|
|
return event_dict
|