Skip to content

Commit bd9dd22

Browse files
committed
NiFi: fixed base processor invalid logger arg.
1 parent 7a0d4bd commit bd9dd22

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

nifi/user_scripts/utils/nifi/base_nifi_processor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
import traceback
23
from logging import Logger
34
from typing import Generic, TypeVar
45

@@ -254,7 +255,9 @@ def transform(self, context: ProcessContext, flowFile: JavaObject) -> FlowFileTr
254255
)
255256
return result
256257
except Exception as exception:
257-
self.logger.error("Exception during flowfile processing", exc_info=True)
258+
self.logger.error(
259+
"Exception during flowfile processing:\n" + traceback.format_exc()
260+
)
258261
return self.build_failure_result(
259262
flowFile,
260263
exception,

0 commit comments

Comments
 (0)