Stop logging to Nylas-Mail-*.log files

This commit is contained in:
Ben Gotow 2017-10-12 13:56:36 -07:00
parent 63cdf69458
commit 77d607dbb8

View file

@ -168,7 +168,7 @@ module.exports = ErrorLogger = (function() {
if (process.type === 'renderer') {
logpid = remote.process.pid + '.' + process.pid;
}
return path.join(tmpPath, 'Nylas-Mail-' + logpid + '.log');
return path.join(tmpPath, 'Mailspring-' + logpid + '.log');
};
// If we're the browser process, remove log files that are more than
@ -183,7 +183,7 @@ module.exports = ErrorLogger = (function() {
return;
}
var logFilter = new RegExp('Nylas-Mail-[.0-9]*.log$');
var logFilter = new RegExp('Mailspring-[.0-9]*.log$');
files.forEach(function(file) {
if (logFilter.test(file) === true) {
var filepath = path.join(tmpPath, file);