Changed logging behaviour
This commit is contained in:
parent
5221f38db7
commit
2afc9c31f9
1 changed files with 4 additions and 3 deletions
|
@ -401,7 +401,7 @@ function ostatus_import($xml,$importer,&$contact, &$hub) {
|
||||||
$item_id = ostatus_completion($conversation, $importer["uid"], $item);
|
$item_id = ostatus_completion($conversation, $importer["uid"], $item);
|
||||||
|
|
||||||
if (!$item_id) {
|
if (!$item_id) {
|
||||||
logger("Error storing item ".print_r($item, true), LOGGER_DEBUG);
|
logger("Error storing item", LOGGER_DEBUG);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -572,10 +572,11 @@ function ostatus_completion($conversation_url, $uid, $item = array()) {
|
||||||
if (!sizeof($items)) {
|
if (!sizeof($items)) {
|
||||||
if (count($item) > 0) {
|
if (count($item) > 0) {
|
||||||
$item_stored = item_store($item, true);
|
$item_stored = item_store($item, true);
|
||||||
logger("Conversation ".$conversation_url." couldn't be fetched. Item uri ".$item["uri"]." stored: ".$item_stored, LOGGER_DEBUG);
|
|
||||||
|
|
||||||
if ($item_stored)
|
if ($item_stored) {
|
||||||
|
logger("Conversation ".$conversation_url." couldn't be fetched. Item uri ".$item["uri"]." stored: ".$item_stored, LOGGER_DEBUG);
|
||||||
ostatus_store_conversation($item_id, $conversation_url);
|
ostatus_store_conversation($item_id, $conversation_url);
|
||||||
|
}
|
||||||
|
|
||||||
return($item_stored);
|
return($item_stored);
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue