mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Updates to more strict type checking after some static analysis
This commit is contained in:
parent
152f86d616
commit
c879dcab34
10 changed files with 50 additions and 34 deletions
|
@ -2,6 +2,12 @@
|
|||
class Logger{
|
||||
public static function WriteGithubWebhookLogEntry(string $requestId, string $text){
|
||||
$fp = fopen(GITHUB_WEBHOOK_LOG_FILE_PATH, 'a+');
|
||||
|
||||
if($fp === false){
|
||||
self::WriteErrorLogEntry('Could not open log file: ' . GITHUB_WEBHOOK_LOG_FILE_PATH);
|
||||
return;
|
||||
}
|
||||
|
||||
fwrite($fp, gmdate('Y-m-d H:i:s') . "\t" . $requestId . "\t" . $text . "\n");
|
||||
fclose($fp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue