mirror of
https://github.com/friendica/friendica
synced 2025-04-22 21:50:12 +00:00
Improve Logger calls
- Replace various deprecated Logger::log calls - Reassign log level for verbose log calls
This commit is contained in:
parent
1917f04153
commit
8c1db51a76
9 changed files with 29 additions and 24 deletions
|
@ -289,7 +289,7 @@ class Processor
|
|||
$item['owner-link'] = $activity['actor'];
|
||||
$item['owner-id'] = Contact::getIdForURL($activity['actor'], 0, true);
|
||||
} else {
|
||||
Logger::log('Ignoring actor because of thread completion.', Logger::DEBUG);
|
||||
Logger::info('Ignoring actor because of thread completion.');
|
||||
$item['owner-link'] = $item['author-link'];
|
||||
$item['owner-id'] = $item['author-id'];
|
||||
}
|
||||
|
@ -358,7 +358,11 @@ class Processor
|
|||
}
|
||||
|
||||
$item_id = Item::insert($item);
|
||||
Logger::log('Storing for user ' . $item['uid'] . ': ' . $item_id);
|
||||
if ($item_id) {
|
||||
Logger::info('Item insertion successful', ['user' => $item['uid'], 'item_id' => $item_id]);
|
||||
} else {
|
||||
Logger::notice('Item insertion aborted', ['user' => $item['uid']]);
|
||||
}
|
||||
|
||||
if ($item['uid'] == 0) {
|
||||
$stored = $item_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue