camunda-external-task-client-python3 icon indicating copy to clipboard operation
camunda-external-task-client-python3 copied to clipboard

Possibility of ignoring certain logs by setting a log level

Open mhashas opened this issue 3 years ago • 3 comments

Hi,

First of all, thank you for the library, super useful. Would it be possible to be able to set the log level so that we can ignore certain logs? For example, I don't want to get the logs that 0 tasks were found, but I do want to get the log that x tasks were found. Right now I subclassed the task executor and others to implement it myself, but it s a bit dirty

mhashas avatar Jul 20 '21 09:07 mhashas

@mhashas We currently also sort out the best way to log relevant information and avoid to fill our OpenSearch instance with senseless information. Am I right that the "= tasks were found" is only ONE example of many? How did you classify logs to relevant/non-relevant?

Can you add a link to your implementation here?

mstuebner avatar Mar 04 '22 09:03 mstuebner

Same issue here. I suggest you set the log level to DEBUG for those, so a long polling will not issue any log events of INFO at all.

Here's what I get on each and every poll, from each worker:

2022-06-28 00:49:46,277 [INFO] [WORKER_ID:2] 0 External task(s) found for Topics: step3, Process variables: None

2022-06-28 00:49:46,277 [INFO] [WORKER_ID:2][TOPIC:step3] no External Task found for Topics: step3, Process variables: None

2022-06-28 00:49:46,278 [INFO] [WORKER_ID:2] Fetching and Executing external tasks for Topics: step3 with Process variables: None

2022-06-28 00:49:46,278 [INFO] [WORKER_ID:2] Fetching and Locking external tasks for Topics: step3 with Process variables: None

All of them are essentially debug level messages, not info.

Note that I have set "isDebug": False

bachi76 avatar Jun 27 '22 22:06 bachi76

This issue is particularly prominent when subscribing to multiple tasks. I hope the team in this repository can pay attention to the impact of this issue.

royalzzz avatar Aug 16 '23 07:08 royalzzz