This commit is contained in:
mike cullerton 2022-09-06 15:28:36 -04:00
parent b0473a400c
commit feb51fbcd0
1 changed files with 2 additions and 2 deletions

View File

@ -92,13 +92,13 @@ class SpiffFilter(logging.Filter):
self.app = app
super().__init__()
def filter(self, record):
def filter(self, record: logging.LogRecord) -> bool:
"""Filter."""
tld = self.app.config["THREAD_LOCAL_DATA"]
process_instance_id = ""
if hasattr(tld, "process_instance_id"):
process_instance_id = tld.process_instance_id
record.process_instance_id = process_instance_id
setattr(record, 'process_instance_id', process_instance_id)
return True