@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add the logger earlier in the Aphlict startup process

Summary: Add the logger as soon as possible so that the log file will contain errors if the `ws` module cannot be loaded.

Test Plan: Ran `./bin/aphlict debug` without having the `ws` module installed. Saw errors in the logs.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11457

+5 -5
+5 -5
support/aphlict/server/aphlict_server.js
··· 70 70 set_exit_code(1); 71 71 }); 72 72 73 + // Add the logfile so we'll fail if we can't write to it. 74 + if (config.log) { 75 + debug.addLog(config.log); 76 + } 77 + 73 78 try { 74 79 require('ws'); 75 80 } catch (ex) { ··· 94 99 if (ssl_config.enabled) { 95 100 ssl_config.key = fs.readFileSync(config['ssl-key']); 96 101 ssl_config.cert = fs.readFileSync(config['ssl-cert']); 97 - } 98 - 99 - // Add the logfile so we'll fail if we can't write to it. 100 - if (config.log) { 101 - debug.addLog(config.log); 102 102 } 103 103 104 104 // If we're just doing a configuration test, exit here before starting any