Replace Logger with DI::logger() in Database classes

This commit is contained in:
Art4 2025-01-13 09:44:21 +00:00
parent 0213001acb
commit 615f96012f
2 changed files with 94 additions and 96 deletions

View file

@ -8,7 +8,6 @@
namespace Friendica\Database;
use Exception;
use Friendica\Core\Logger;
use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Model\User;
@ -238,7 +237,7 @@ class DBStructure
$errors = '';
Logger::info('updating structure');
DI::logger()->info('updating structure');
// Get the current structure
$database = [];
@ -251,7 +250,7 @@ class DBStructure
foreach ($tables as $table) {
$table = current($table);
Logger::info('updating structure', ['table' => $table]);
DI::logger()->info('updating structure', ['table' => $table]);
$database[$table] = self::tableStructure($table);
}
}