From: Michael Vogel Date: Wed, 9 Dec 2020 05:58:19 +0000 (+0100) Subject: Apply suggestions from code review X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=33930b0bd9346544204a38594829d8eb8c88a6a1;p=friendica.git Apply suggestions from code review Co-authored-by: Hypolite Petovan --- 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; }