mirror of
https://github.com/friendica/friendica
synced 2025-04-25 04:30:11 +00:00
DBA-Logger fix
This commit is contained in:
parent
2133decf4c
commit
fbd056327a
5 changed files with 65 additions and 19 deletions
|
@ -4,6 +4,7 @@ namespace Friendica\Factory;
|
|||
|
||||
use Friendica\Core\Config\Cache;
|
||||
use Friendica\Database;
|
||||
use Friendica\Util\Logger\VoidLogger;
|
||||
use Friendica\Util\Profiler;
|
||||
|
||||
class DBFactory
|
||||
|
@ -51,7 +52,7 @@ class DBFactory
|
|||
$db_data = $server['MYSQL_DATABASE'];
|
||||
}
|
||||
|
||||
if (Database\DBA::connect($basePath, $configCache, $profiler, $db_host, $db_user, $db_pass, $db_data, $charset)) {
|
||||
if (Database\DBA::connect($basePath, $configCache, $profiler, new VoidLogger(), $db_host, $db_user, $db_pass, $db_data, $charset)) {
|
||||
// Loads DB_UPDATE_VERSION constant
|
||||
Database\DBStructure::definition($basePath, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue