mirror of
https://github.com/friendica/friendica
synced 2025-05-12 07:04:09 +02:00
Fix some notices / reduce the number of warnings
This commit is contained in:
parent
a7160e4a1f
commit
2856b1126c
4 changed files with 11 additions and 8 deletions
|
@ -176,7 +176,7 @@ class Processor
|
|||
if ($id) {
|
||||
$this->logger->info('Post inserted', ['id' => $id, 'guid' => $item['guid']]);
|
||||
} elseif (Post::exists(['uid' => $uid, 'uri-id' => $item['uri-id']])) {
|
||||
$this->logger->warning('Post was found', ['guid' => $item['guid'], 'uri' => $item['uri']]);
|
||||
$this->logger->notice('Post was found', ['guid' => $item['guid'], 'uri' => $item['uri']]);
|
||||
} else {
|
||||
$this->logger->warning('Post was not inserted', ['guid' => $item['guid'], 'uri' => $item['uri']]);
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ class Processor
|
|||
if ($id) {
|
||||
$this->logger->info('Repost inserted', ['id' => $id]);
|
||||
} elseif (Post::exists(['uid' => $uid, 'uri-id' => $item['uri-id']])) {
|
||||
$this->logger->warning('Repost was found', ['uri' => $item['uri']]);
|
||||
$this->logger->notice('Repost was found', ['uri' => $item['uri']]);
|
||||
} else {
|
||||
$this->logger->warning('Repost was not inserted', ['uri' => $item['uri']]);
|
||||
}
|
||||
|
@ -235,7 +235,7 @@ class Processor
|
|||
if ($id) {
|
||||
$this->logger->info('Like inserted', ['id' => $id]);
|
||||
} elseif (Post::exists(['uid' => $uid, 'uri-id' => $item['uri-id']])) {
|
||||
$this->logger->warning('Like was found', ['uri' => $item['uri']]);
|
||||
$this->logger->notice('Like was found', ['uri' => $item['uri']]);
|
||||
} else {
|
||||
$this->logger->warning('Like was not inserted', ['uri' => $item['uri']]);
|
||||
}
|
||||
|
@ -315,7 +315,7 @@ class Processor
|
|||
if ($id) {
|
||||
$this->logger->info('Fetched post inserted', ['id' => $id, 'guid' => $item['guid']]);
|
||||
} elseif (Post::exists(['uid' => $uid, 'uri-id' => $item['uri-id']])) {
|
||||
$this->logger->warning('Fetched post was found', ['guid' => $item['guid'], 'uri' => $item['uri']]);
|
||||
$this->logger->notice('Fetched post was found', ['guid' => $item['guid'], 'uri' => $item['uri']]);
|
||||
} else {
|
||||
$this->logger->warning('Fetched post was not inserted', ['guid' => $item['guid'], 'uri' => $item['uri']]);
|
||||
}
|
||||
|
|
|
@ -161,7 +161,7 @@ class Delivery
|
|||
|
||||
}
|
||||
|
||||
Logger::notice('Delivery failed', ['retcode' => $response->getReturnCode(), 'serverfailure' => $serverfail, 'drop' => $drop, 'runtime' => round($runtime, 3), 'uri-id' => $uri_id, 'uid' => $uid, 'item_id' => $item_id, 'cmd' => $cmd, 'inbox' => $inbox]);
|
||||
Logger::notice('Delivery failed', ['retcode' => $response->getReturnCode() ?? 0, 'serverfailure' => $serverfail, 'drop' => $drop, 'runtime' => round($runtime, 3), 'uri-id' => $uri_id, 'uid' => $uid, 'item_id' => $item_id, 'cmd' => $cmd, 'inbox' => $inbox]);
|
||||
}
|
||||
if ($uri_id) {
|
||||
if ($success) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue