Page MenuHomePhabricator

Make "fail quietly" flag in DeferredLog a little more quiet
ClosedPublic

Authored by epriestley on Apr 23 2017, 2:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 1:29 AM
Unknown Object (File)
Thu, Nov 14, 4:38 PM
Unknown Object (File)
Thu, Nov 14, 4:38 AM
Unknown Object (File)
Tue, Nov 12, 9:06 AM
Unknown Object (File)
Sun, Nov 10, 8:03 PM
Unknown Object (File)
Thu, Nov 7, 3:03 AM
Unknown Object (File)
Oct 2 2024, 2:14 PM
Unknown Object (File)
Sep 28 2024, 2:29 PM
Subscribers
None

Details

Summary

Ref T12611. Currently, access logs have a "setFailQuietly(true)" flag set on them (rationale: the webserver should still work if the log volume fills up or logs are otherwise not correctly configured) but it's only somewhat quiet.

Make it quieter when the log directory itself (not just the logfile) doesn't exist or can't be created.

(If installs run into confusion with this, we could more reasonably raise a setup warning instead.)

Test Plan

With a missing logfile directory, saw a log about being unable to log instead of an exception.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley added a child revision: Restricted Differential Revision.Apr 23 2017, 2:57 PM
This revision is now accepted and ready to land.Apr 23 2017, 3:14 PM
This revision was automatically updated to reflect the committed changes.