Page MenuHomePhabricator

D11387.diff
No OneTemporary

D11387.diff

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

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)

Event Timeline