Only log failed message retrieval after all steps to retry.
This commit is contained in:
parent
b0f6e182f4
commit
78d4003133
|
@ -267,7 +267,6 @@ function message_read($id, $bodynum = 0, $group = "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (! isset($rawmessage) || $rawmessage === FALSE) {
|
if (! isset($rawmessage) || $rawmessage === FALSE) {
|
||||||
file_put_contents($debug_log, "\n" . logging_prefix() . " " . $config_name . " Unable to retrieve: " . $group . ":" . $id . " from local server", FILE_APPEND);
|
|
||||||
if (! isset($ns)) {
|
if (! isset($ns)) {
|
||||||
$ns = nntp_open();
|
$ns = nntp_open();
|
||||||
}
|
}
|
||||||
|
@ -282,7 +281,9 @@ function message_read($id, $bodynum = 0, $group = "")
|
||||||
// should check, if the thread stored in the spool-directory
|
// should check, if the thread stored in the spool-directory
|
||||||
// also doesnt't contain that article...
|
// also doesnt't contain that article...
|
||||||
thread_cache_removearticle($group, $id);
|
thread_cache_removearticle($group, $id);
|
||||||
|
file_put_contents($debug_log, "\n" . logging_prefix() . " " . $config_name . " Unable to retrieve: " . $group . ":" . $id . " from local server", FILE_APPEND);
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
}
|
}
|
||||||
$rawmessage = array();
|
$rawmessage = array();
|
||||||
$line = line_read($ns);
|
$line = line_read($ns);
|
||||||
|
|
Loading…
Reference in New Issue