Merge pull request #6054 from nupplaphil/lock_logger
Add missing Logger::log()
This commit is contained in:
commit
a9416330fe
|
@ -48,7 +48,7 @@ class Lock
|
||||||
self::useAutoDriver();
|
self::useAutoDriver();
|
||||||
}
|
}
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
logger ('Driver \'' . $lock_driver . '\' failed - Fallback to \'useAutoDriver()\'');
|
Logger::log('Driver \'' . $lock_driver . '\' failed - Fallback to \'useAutoDriver()\'');
|
||||||
self::useAutoDriver();
|
self::useAutoDriver();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ class Lock
|
||||||
self::$driver = new Lock\SemaphoreLockDriver();
|
self::$driver = new Lock\SemaphoreLockDriver();
|
||||||
return;
|
return;
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
logger ('Using Semaphore driver for locking failed: ' . $exception->getMessage());
|
Logger::log('Using Semaphore driver for locking failed: ' . $exception->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue