Comparing version 3.8.1 to 3.8.2
@@ -101,6 +101,7 @@ var Bluebird = require('bluebird'); | ||
exports.readAndSetLevel = function (path, level) { | ||
if (extname(path) === 'properties') { | ||
if (extname(path) === '.properties') { | ||
// log4j2.properties file | ||
return editPropertiesFile(path).then(function (editor) { | ||
editor.set('status', level); | ||
editor.set('logger.action.level', level.toLowerCase()); | ||
editor.set('rootLogger.level', level.toLowerCase()); | ||
return editor.toString(); | ||
@@ -107,0 +108,0 @@ }); |
@@ -27,3 +27,3 @@ var temp = require('temp'); | ||
return Promise.all([ | ||
ignoreEnoent(remove(join(dir, 'logging.yml'))), | ||
remove(join(dir, 'logging.yml')), | ||
writeFile(join(dir, 'logging.json'), JSON.stringify(configs.logging), 'utf8') | ||
@@ -61,3 +61,3 @@ ]); | ||
return Promise.all([ | ||
ignoreEnoent(remove(join(dir, 'elasticsearch.yml'))), | ||
remove(join(dir, 'elasticsearch.yml')), | ||
writeFile(join(dir, 'elasticsearch.json'), JSON.stringify(configs.es), 'utf8'), | ||
@@ -64,0 +64,0 @@ ]) |
{ | ||
"name": "libesvm", | ||
"version": "3.8.1", | ||
"version": "3.8.2", | ||
"description": "libesvm is a library for managning an Elasticsearch process for development and testing.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
998508
2200