From 33930b0bd9346544204a38594829d8eb8c88a6a1 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 9 Dec 2020 06:58:19 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Hypolite Petovan --- src/Core/Worker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Worker.php b/src/Core/Worker.php index 4fcca35f12..fb3470270e 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -422,7 +422,7 @@ class Worker DI::profiler()->reset(); if (!in_array($queue['priority'], PRIORITIES)) { - Logger::warning('Invalid period', ['queue' => $queue, 'callstack' => System::callstack(20)]); + Logger::warning('Invalid priority', ['queue' => $queue, 'callstack' => System::callstack(20)]); $queue['priority'] = PRIORITY_MEDIUM; } @@ -1270,7 +1270,7 @@ class Worker $added = false; if (!in_array($priority, PRIORITIES)) { - Logger::warning('Invalid period', ['priority' => $priority, 'command' => $command, 'callstack' => System::callstack(20)]); + Logger::warning('Invalid priority', ['priority' => $priority, 'command' => $command, 'callstack' => System::callstack(20)]); $priority = PRIORITY_MEDIUM; }