mirror of
https://github.com/friendica/friendica
synced 2025-04-30 18:24:23 +02:00
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
87673fd0c5
commit
81c9d8d479
6 changed files with 11 additions and 11 deletions
|
@ -535,12 +535,12 @@ class OStatus
|
|||
foreach (self::$itemlist as $item) {
|
||||
$found = Post::exists(['uid' => $importer["uid"], 'uri' => $item["uri"]]);
|
||||
if ($found) {
|
||||
Logger::info("Item with uri ".$item["uri"]." for user ".$importer["uid"]." already exists.");
|
||||
Logger::notice("Item with uri ".$item["uri"]." for user ".$importer["uid"]." already exists.");
|
||||
} elseif ($item['contact-id'] < 0) {
|
||||
Logger::info("Item with uri ".$item["uri"]." is from a blocked contact.");
|
||||
Logger::notice("Item with uri ".$item["uri"]." is from a blocked contact.");
|
||||
} else {
|
||||
$ret = Item::insert($item);
|
||||
Logger::notice("Item with uri ".$item["uri"]." for user ".$importer["uid"].' stored. Return value: '.$ret);
|
||||
Logger::info("Item with uri ".$item["uri"]." for user ".$importer["uid"].' stored. Return value: '.$ret);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ class Salmon
|
|||
{
|
||||
$ret = [];
|
||||
|
||||
Logger::notice('Fetching salmon key for '.$uri);
|
||||
Logger::info('Fetching salmon key for '.$uri);
|
||||
|
||||
$arr = Probe::lrdd($uri);
|
||||
|
||||
|
@ -121,7 +121,7 @@ class Salmon
|
|||
return;
|
||||
}
|
||||
|
||||
Logger::notice('slapper called for '.$url.'. Data: ' . $slap);
|
||||
Logger::info('slapper called for '.$url.'. Data: ' . $slap);
|
||||
|
||||
// create a magic envelope
|
||||
|
||||
|
@ -209,7 +209,7 @@ class Salmon
|
|||
$return_code = $postResult->getReturnCode();
|
||||
}
|
||||
|
||||
Logger::notice('slapper for '.$url.' returned ' . $return_code);
|
||||
Logger::info('slapper for '.$url.' returned ' . $return_code);
|
||||
|
||||
if (! $return_code) {
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue