Adding Develop and normal Logging instances
This commit is contained in:
parent
1702cb73e7
commit
8f9c0fe149
14 changed files with 454 additions and 214 deletions
10
update.php
10
update.php
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Update;
|
||||
use Friendica\Core\Worker;
|
||||
|
@ -332,9 +332,7 @@ function update_1298()
|
|||
$fail++;
|
||||
} else {
|
||||
DBA::update('profile', [$translateKey => $key], ['id' => $data['id']]);
|
||||
BaseObject::getApp()
|
||||
->getLogger()
|
||||
->notice('Updated contact', ['action' => 'update', 'contact' => $data['id'], "$translateKey" => $key,
|
||||
Logger::notice('Updated contact', ['action' => 'update', 'contact' => $data['id'], "$translateKey" => $key,
|
||||
'was' => $data[$translateKey]]);
|
||||
Worker::add(PRIORITY_LOW, 'ProfileUpdate', $data['id']);
|
||||
Contact::updateSelfFromUserID($data['id']);
|
||||
|
@ -344,9 +342,7 @@ function update_1298()
|
|||
}
|
||||
}
|
||||
|
||||
BaseObject::getApp()
|
||||
->getLogger()
|
||||
->notice($translateKey . " fix completed", ['action' => 'update', 'translateKey' => $translateKey, 'Success' => $success, 'Fail' => $fail ]);
|
||||
Logger::notice($translateKey . " fix completed", ['action' => 'update', 'translateKey' => $translateKey, 'Success' => $success, 'Fail' => $fail ]);
|
||||
}
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue