move tracer log into tmp dir
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,7 +12,6 @@ esvm
|
||||
## generated files
|
||||
src/bower*/
|
||||
junit-*.xml
|
||||
elasticsearch*.log
|
||||
sauce_connect.lo*
|
||||
coverage.html
|
||||
.snapshots
|
||||
|
||||
@ -12,7 +12,6 @@ esvm
|
||||
## generated files
|
||||
src/bower*/
|
||||
junit-*.xml
|
||||
elasticsearch*.log
|
||||
sauce_connect.lo*
|
||||
coverage.html
|
||||
.snapshots
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user