[TASK] Raise severity for stale lock file
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Locking / Locker.php
index d9b2bb2..f897811 100644 (file)
@@ -188,7 +188,7 @@ class Locker {
                                        $maxAge = time() - ($maxExecutionTime ?: 120);
                                        if (@filectime($this->resource) < $maxAge) {
                                                @unlink($this->resource);
-                                               $this->sysLog('Unlinking stale lockfile');
+                                               $this->sysLog('Unlinking stale lockfile', GeneralUtility::SYSLOG_SEVERITY_WARNING);
                                        }
                                }
                                for ($i = 0; $i < $this->loops; $i++) {
@@ -262,7 +262,7 @@ class Locker {
                                        $maxAge = time() - ($maxExecutionTime ?: 120);
                                        if (@filectime($this->resource) < $maxAge) {
                                                @unlink($this->resource);
-                                               $this->sysLog('Unlinking stale lockfile');
+                                               $this->sysLog('Unlinking stale lockfile', GeneralUtility::SYSLOG_SEVERITY_WARNING);
                                        }
                                }
                                for ($i = 0; $i < $this->loops; $i++) {
@@ -418,7 +418,7 @@ class Locker {
                                        $maxAge = time() - ($maxExecutionTime ?: 120);
                                        if (@filectime($this->resource) < $maxAge) {
                                                @unlink($this->resource);
-                                               $this->sysLog('Unlinking stale lockfile');
+                                               $this->sysLog('Unlinking stale lockfile', GeneralUtility::SYSLOG_SEVERITY_WARNING);
                                        } else {
                                                $result = TRUE;
                                        }