Page MenuHomePhabricator

Automatically create the Aphlict log directory
ClosedPublic

Authored by joshuaspence on Jan 14 2015, 12:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 31 2026, 9:01 PM
Unknown Object (File)
Mar 28 2026, 12:03 AM
Unknown Object (File)
Mar 7 2026, 6:21 AM
Unknown Object (File)
Jan 30 2026, 10:38 PM
Unknown Object (File)
Jan 30 2026, 10:33 PM
Unknown Object (File)
Dec 18 2025, 12:29 PM
Unknown Object (File)
Dec 10 2025, 4:02 PM
Unknown Object (File)
Dec 10 2025, 1:56 PM
Subscribers

Details

Summary

Fixes T6944. Attempt to automatically create the log directory for the Aphlict server. If the directory can't be created, throw a helpful exception.

Test Plan
  1. Set notification.log to /var/log/aphlict/aphlict.log.
  2. Ran ./bin/aphlict debug and saw an exception (because the user doesn't have permissions to create the /var/log/aphlict directory).
  3. Ran sudo chmod 777 /var/log.
  4. Ran ./bin/aphlict debug and saw the /var/log/aphlict directory created.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Automatically create the Aphlict log directory.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
42

Consider passing $recursive = true.

This revision is now accepted and ready to land.Jan 14 2015, 2:01 PM
src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
42

Yeah, I was considering this. I suppose that is reasonable.

joshuaspence edited edge metadata.

Pass $recursive = true

This revision was automatically updated to reflect the committed changes.