move tracer log into tmp dir

This commit is contained in:
spalger
2017-06-14 20:44:46 -07:00
parent a6f4d549bd
commit a9aa612f75
4 changed files with 2 additions and 4 deletions

1
.gitignore vendored
View File

@ -12,7 +12,6 @@ esvm
## generated files
src/bower*/
junit-*.xml
elasticsearch*.log
sauce_connect.lo*
coverage.html
.snapshots

View File

@ -12,7 +12,6 @@ esvm
## generated files
src/bower*/
junit-*.xml
elasticsearch*.log
sauce_connect.lo*
coverage.html
.snapshots

View File

@ -21,7 +21,7 @@ function Tracer(log, config) {
if (config.path === false) {
config.stream = process.stderr;
} else {
config.stream = fs.createWriteStream(config.path || 'elasticsearch-tracer.log');
config.stream = fs.createWriteStream(config.path || 'tmp/tracer.log');
}
this.curlHost = config.curlHost || 'localhost';

View File

@ -76,7 +76,7 @@ module.exports = {
if (logConfig && logConfig.type === 'tracer') {
try {
fs.unlinkSync(fromRoot('elasticsearch-tracer.log'));
fs.unlinkSync(fromRoot('tmp/tracer.log'));
} catch (error) {
if (error.code !== 'ENOENT') {
throw error;