mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 19:24:28 +02:00
Replace Logger with DI::logger() in Database classes
This commit is contained in:
parent
0213001acb
commit
615f96012f
2 changed files with 94 additions and 96 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue