Added an “Info” line in case state file is not found

This commit is contained in:
pezcurrel 2024-10-25 07:48:04 +02:00
parent 4108a751f0
commit a98f7f7541

View file

@ -295,6 +295,8 @@ if (file_exists($conf['state_file_absolute_path'])) {
}
fclose($fh);
echo 'Info: got '.count($guids)." GUID(s) for already posted event(s) from state file «{$conf['state_file_absolute_path']}»; removed {$i} line(s) older than one year.\n";
} else {
echo "Info: state file «{$conf['state_file_absolute_path']}» was not found.\n";
}
if (($fh=@fopen($conf['state_file_absolute_path'],'a'))===false) dieYoung("Error: could not open «{$conf['state_file_absolute_path']}» in «append» mode.\n",1);