Skip to content
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

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jun 12, 2024

Backport of PR #45804

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@backportbot backportbot bot added bug 3. to review Waiting for reviews labels Jun 12, 2024
@backportbot backportbot bot added this to the Nextcloud 29.0.3 milestone Jun 12, 2024
@ChristophWurst ChristophWurst enabled auto-merge June 12, 2024 10:49
@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 12, 2024
$timeSpent = $timeAfter - $timeBefore;
if ($timeSpent > $cronInterval) {
$logLevel = match (true) {
$timeSpent > $cronInterval * 128 => \OCP\ILogger::FATAL,

Check notice

Code scanning / Psalm

DeprecatedClass Note

Class OCP\ILogger is deprecated
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

Class OCP\ILogger is deprecated
$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

Class OCP\ILogger is deprecated
$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

Class OCP\ILogger is deprecated
$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

Class OCP\ILogger is deprecated
@ChristophWurst ChristophWurst merged commit ba46d03 into stable29 Jun 12, 2024
164 of 168 checks passed
@ChristophWurst ChristophWurst deleted the backport/45804/stable29 branch June 12, 2024 13:10
@blizzz blizzz mentioned this pull request Jun 12, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants