mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
Reverted and improved TODO:
------ @nupplaphil: There is no easy possibility to add a logger here, that's why there isn't any yet and instead a placeholder.. This execution point is a critical state during a testrun, and tbh I'd like to leave here no further logic (yet) because I spent hours debugging cases, where transactions weren't fully closed and strange/unpredictable errors occur (sometimes -mainly during debugging other errors :) ...) -----
This commit is contained in:
parent
80c8ec17c2
commit
f38ad168f5
1 changed files with 1 additions and 2 deletions
|
@ -179,8 +179,7 @@ class StaticDatabase extends Database
|
|||
self::$staticConnection = @new ExtendedPDO($connect, $user, $pass);
|
||||
self::$staticConnection->setAttribute(PDO::ATTR_AUTOCOMMIT,0);
|
||||
} catch (PDOException $e) {
|
||||
// Log exception
|
||||
$this->logger::error('Cannot establish database connection', ['exception' => $e, 'host' => $server, 'dbname' => $db]);
|
||||
/// @TODO Try to find a way to log this exception as it contains valueable information
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue