Fix permissions on Aphlict log
Summary: Currently, the Aphlict server created the log file (if it doesn't exist) but then immediately fails with "Unable to open logfile". It seems that we don't set the permissions correctly. Test Plan: Deleted log file and was able to start the Aphlict server. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11351
This commit is contained in:
@@ -17,7 +17,7 @@ JX.install('AphlictLog', {
|
||||
var options = {
|
||||
flags: 'a',
|
||||
encoding: 'utf8',
|
||||
mode: 066
|
||||
mode: 0664,
|
||||
};
|
||||
|
||||
var logfile = fs.createWriteStream(path, options);
|
||||
|
||||
Reference in New Issue
Block a user