From e56441d6c5339af33859e4aa3bfe7dcacc23fcec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 14 Feb 2020 12:00:22 +0100 Subject: [PATCH] Reduce flow logging at INFO level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/workflowengine/lib/Service/Logger.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/workflowengine/lib/Service/Logger.php b/apps/workflowengine/lib/Service/Logger.php index 8b90e6fa15..dee09cc0aa 100644 --- a/apps/workflowengine/lib/Service/Logger.php +++ b/apps/workflowengine/lib/Service/Logger.php @@ -59,7 +59,7 @@ class Logger { public function logFlowRequests(LogContext $logContext) { $message = 'Flow activation: rules were requested for operation {op}'; - $context = ['op' => $logContext->getDetails()['operation']['name']]; + $context = ['op' => $logContext->getDetails()['operation']['name'], 'level' => ILogger::DEBUG]; $logContext->setDescription('Flow activation: rules were requested'); @@ -80,6 +80,7 @@ class Logger { $context = [ 'op' => $logContext->getDetails()['operation']['name'], 'config' => $logContext->getDetails()['configuration'], + 'level' => ILogger::DEBUG, ]; $logContext->setDescription('Flow rule qualified to run'); @@ -113,6 +114,7 @@ class Logger { $message = 'No flow configurations is going to run {op}'; $context = [ 'op' => $logContext->getDetails()['operation']['name'], + 'level' => ILogger::DEBUG, ]; $logContext->setDescription('No flow configurations is going to run'); @@ -125,6 +127,7 @@ class Logger { $context = [ 'ev' => $logContext->getDetails()['eventName'], + 'level' => ILogger::DEBUG, ]; $logContext->setDescription('Flow activated by event');