]> git.mxchange.org Git - friendica.git/commitdiff
Apply suggestions from code review
authorMichael Vogel <icarus@dabo.de>
Wed, 9 Dec 2020 05:58:19 +0000 (06:58 +0100)
committerGitHub <noreply@github.com>
Wed, 9 Dec 2020 05:58:19 +0000 (06:58 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Core/Worker.php

index 4fcca35f12ff69caad6a74ee191902024d5adb20..fb3470270e2a08d36fd27e2495bdccf80717cb70 100644 (file)
@@ -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;
                }