Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15397672
D11387.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11387.diff
View Options
diff --git a/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php b/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
--- a/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
+++ b/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
@@ -34,6 +34,22 @@
return PhabricatorEnv::getEnvConfig('notification.pidfile');
}
+ final public function getLogPath() {
+ $path = PhabricatorEnv::getEnvConfig('notification.log');
+
+ try {
+ $dir = dirname($path);
+ Filesystem::createDirectory($dir, 0755, true);
+ } catch (FilesystemException $ex) {
+ throw new Exception(
+ pht(
+ "Failed to create '%s'. You should manually create this directory.",
+ $dir));
+ }
+
+ return $path;
+ }
+
final public function getPID() {
$pid = null;
if (Filesystem::pathExists($this->getPIDPath())) {
@@ -128,7 +144,7 @@
$client_uri = PhabricatorEnv::getEnvConfig('notification.client-uri');
$client_uri = new PhutilURI($client_uri);
- $log = PhabricatorEnv::getEnvConfig('notification.log');
+ $log = $this->getLogPath();
$server_argv = array();
$server_argv[] = '--client-port='.coalesce(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 17, 9:40 PM (3 d, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7708907
Default Alt Text
D11387.diff (1 KB)
Attached To
Mode
D11387: Automatically create the Aphlict log directory
Attached
Detach File
Event Timeline
Log In to Comment