Add logging to debug.log if suspect a group is broken.

This commit is contained in:
Retro_Guy 2023-09-16 09:54:46 -07:00
parent 970f433e0c
commit 14d35f49e3
2 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,7 @@ if ($message) {
$subthread = thread_getsubthreadids($message->header->id, $thread);
if (! $subthread) {
echo '<center>Group is rebuilding... Please try again later</center>';
file_put_contents($debug_log, "\n" . format_log_date() . " " . $config_name . " GROUP ERROR: ".$group." may need repair", FILE_APPEND);
exit();
}
if ($thread_articles == false) {

View File

@ -29,6 +29,7 @@ $CONFIG = include ($config_file);
$OVERRIDES = include ($config_dir . '/overrides.inc.php');
$logdir = $spooldir . '/log';
$debug_log = $logdir . '/debug.log';
$lockdir = $spooldir . '/lock';
$ssldir = $spooldir . '/ssl/';
$user_ban_file = $config_dir . '/banned_names.conf';