Added an “Info” line in case state file is not found
This commit is contained in:
parent
4108a751f0
commit
a98f7f7541
1 changed files with 2 additions and 0 deletions
2
gancioff
2
gancioff
|
@ -295,6 +295,8 @@ if (file_exists($conf['state_file_absolute_path'])) {
|
||||||
}
|
}
|
||||||
fclose($fh);
|
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";
|
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);
|
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);
|
||||||
|
|
Loading…
Reference in a new issue