Only log failed message retrieval after all steps to retry.

This commit is contained in:
Retro_Guy 2024-09-28 12:46:42 -07:00
parent b0f6e182f4
commit 78d4003133
1 changed files with 2 additions and 1 deletions

View File

@ -267,7 +267,6 @@ function message_read($id, $bodynum = 0, $group = "")
}
}
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)) {
$ns = nntp_open();
}
@ -282,7 +281,9 @@ function message_read($id, $bodynum = 0, $group = "")
// should check, if the thread stored in the spool-directory
// also doesnt't contain that article...
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;
} else {
}
$rawmessage = array();
$line = line_read($ns);