diff --git a/src/infrastructure/PhabricatorAccessLog.php b/src/infrastructure/PhabricatorAccessLog.php index 6b73cca50b..2b77d144cd 100644 --- a/src/infrastructure/PhabricatorAccessLog.php +++ b/src/infrastructure/PhabricatorAccessLog.php @@ -22,14 +22,15 @@ final class PhabricatorAccessLog { // NOTE: Path may be null. We still create the log, it just won't write // anywhere. - $log = new PhutilDeferredLog($path, $format); - $log->setData( - array( - 'D' => date('r'), - 'h' => php_uname('n'), - 'p' => getmypid(), - 'e' => time(), - )); + $log = id(new PhutilDeferredLog($path, $format)) + ->setFailQuietly(true) + ->setData( + array( + 'D' => date('r'), + 'h' => php_uname('n'), + 'p' => getmypid(), + 'e' => time(), + )); self::$log = $log; } diff --git a/support/PhabricatorStartup.php b/support/PhabricatorStartup.php index ebfcb8410b..374228570e 100644 --- a/support/PhabricatorStartup.php +++ b/support/PhabricatorStartup.php @@ -194,16 +194,11 @@ final class PhabricatorStartup { if ($access_log) { // We may end up here before the access log is initialized, e.g. from // verifyPHP(). - - try { - $access_log->setData( - array( - 'c' => 500, - )); - $access_log->write(); - } catch (Exception $ex) { - $message .= "\n(Moreover, unable to write to access log.)"; - } + $access_log->setData( + array( + 'c' => 500, + )); + $access_log->write(); } header(