mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Fallback to database lock if locking fails
This commit is contained in:
parent
0384bf3e76
commit
deb6b7a7c3
2 changed files with 15 additions and 5 deletions
|
@ -122,7 +122,7 @@ class LockFactory
|
|||
try {
|
||||
return new Lock\SemaphoreLock();
|
||||
} catch (\Exception $exception) {
|
||||
$this->logger->debug('Using Semaphore driver for locking failed.', ['exception' => $exception]);
|
||||
$this->logger->warning('Using Semaphore driver for locking failed.', ['exception' => $exception]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ class LockFactory
|
|||
return new Lock\CacheLock($cache);
|
||||
}
|
||||
} catch (\Exception $exception) {
|
||||
$this->logger->debug('Using Cache driver for locking failed.', ['exception' => $exception]);
|
||||
$this->logger->warning('Using Cache driver for locking failed.', ['exception' => $exception]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue