Skip to content
Snippets Groups Projects
Verified Commit dff61ebb authored by vilepickle's avatar vilepickle Committed by Arne Jørgensen
Browse files

Issue #2803913 by vilepickle: Don't print watchdog message if cleaning up 0 released locks

parent 2ebeafe8
No related branches found
Tags 7.x-1.0-alpha1
No related merge requests found
......@@ -257,9 +257,11 @@ class UltimateCronLock {
}
}
} while ($lids);
watchdog('ultimate_cron_lock', 'Cleaned up @count released locks', array(
'@count' => $count,
), WATCHDOG_DEBUG);
if ($count > 0) {
watchdog('ultimate_cron_lock', 'Cleaned up @count released locks', array(
'@count' => $count,
), WATCHDOG_DEBUG);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment