diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-01-28 13:00:13 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-01-28 13:00:13 +0100 |
commit | e00844488709552febdc07c19bed4c7ceb52a98d (patch) | |
tree | 44812e00bc9061fca2c2393b17982bdce3cf6f71 /apps/workflowengine/lib | |
parent | 46aaeb45612e20b6f460396533faf7f26ed1d6f7 (diff) | |
download | nextcloud-server-e00844488709552febdc07c19bed4c7ceb52a98d.tar.gz nextcloud-server-e00844488709552febdc07c19bed4c7ceb52a98d.zip |
always require a message paramter for data logging
also ensure it plays well with current log reader
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine/lib')
-rw-r--r-- | apps/workflowengine/lib/Helper/LogContext.php | 2 | ||||
-rw-r--r-- | apps/workflowengine/lib/Service/Logger.php | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/workflowengine/lib/Helper/LogContext.php b/apps/workflowengine/lib/Helper/LogContext.php index 786aa7cf85a..548e8722073 100644 --- a/apps/workflowengine/lib/Helper/LogContext.php +++ b/apps/workflowengine/lib/Helper/LogContext.php @@ -33,7 +33,7 @@ class LogContext { protected $details; public function setDescription(string $description): LogContext { - $this->details['description'] = $description; + $this->details['message'] = $description; return $this; } diff --git a/apps/workflowengine/lib/Service/Logger.php b/apps/workflowengine/lib/Service/Logger.php index 0bf09ed8a72..8b90e6fa159 100644 --- a/apps/workflowengine/lib/Service/Logger.php +++ b/apps/workflowengine/lib/Service/Logger.php @@ -162,8 +162,10 @@ class Logger { return; } + $details = $logContext->getDetails(); $this->flowLogger->logData( - $logContext->getDetails(), + $details['message'], + $details, ['app' => Application::APP_ID, 'level' => $context['level']] ); } |