mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
Stop logging to Nylas-Mail-*.log files
This commit is contained in:
parent
63cdf69458
commit
77d607dbb8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue