-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stable29] fix(cron): Log long running jobs #45813
Conversation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
$timeSpent = $timeAfter - $timeBefore; | ||
if ($timeSpent > $cronInterval) { | ||
$logLevel = match (true) { | ||
$timeSpent > $cronInterval * 128 => \OCP\ILogger::FATAL, |
Check notice
Code scanning / Psalm
DeprecatedClass Note
if ($timeSpent > $cronInterval) { | ||
$logLevel = match (true) { | ||
$timeSpent > $cronInterval * 128 => \OCP\ILogger::FATAL, | ||
$timeSpent > $cronInterval * 64 => \OCP\ILogger::ERROR, |
Check notice
Code scanning / Psalm
DeprecatedClass Note
$logLevel = match (true) { | ||
$timeSpent > $cronInterval * 128 => \OCP\ILogger::FATAL, | ||
$timeSpent > $cronInterval * 64 => \OCP\ILogger::ERROR, | ||
$timeSpent > $cronInterval * 16 => \OCP\ILogger::WARN, |
Check notice
Code scanning / Psalm
DeprecatedClass Note
$timeSpent > $cronInterval * 128 => \OCP\ILogger::FATAL, | ||
$timeSpent > $cronInterval * 64 => \OCP\ILogger::ERROR, | ||
$timeSpent > $cronInterval * 16 => \OCP\ILogger::WARN, | ||
$timeSpent > $cronInterval * 8 => \OCP\ILogger::INFO, |
Check notice
Code scanning / Psalm
DeprecatedClass Note
$timeSpent > $cronInterval * 64 => \OCP\ILogger::ERROR, | ||
$timeSpent > $cronInterval * 16 => \OCP\ILogger::WARN, | ||
$timeSpent > $cronInterval * 8 => \OCP\ILogger::INFO, | ||
default => \OCP\ILogger::DEBUG, |
Check notice
Code scanning / Psalm
DeprecatedClass Note
Backport of PR #45804