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)
Sat, Nov 23, 8:53 AM
Unknown Object (File)
Wed, Nov 20, 8:23 AM
Unknown Object (File)
Fri, Nov 15, 5:54 PM
Unknown Object (File)
Tue, Nov 12, 12:01 PM
Unknown Object (File)
Fri, Nov 8, 8:52 AM
Unknown Object (File)
Thu, Nov 7, 4:49 PM
Unknown Object (File)
Oct 21 2024, 11:59 AM
Unknown Object (File)
Oct 15 2024, 11:18 AM
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.