turned off config file reloading by default
This commit is contained in:
parent
4f7d73bc97
commit
d13b2fb3b4
@ -326,7 +326,7 @@ function initReloadConfiguration(filename, options) {
|
||||
function configure (configurationFileOrObject, options) {
|
||||
var config = configurationFileOrObject;
|
||||
if (config === undefined || config === null || typeof(config) === 'string') {
|
||||
options = options || { reloadSecs: 60 };
|
||||
options = options || { };
|
||||
if (options.reloadSecs) {
|
||||
initReloadConfiguration(config, options);
|
||||
}
|
||||
|
@ -444,6 +444,7 @@ vows.describe('log4js').addBatch({
|
||||
}
|
||||
);
|
||||
|
||||
log4js.configure(undefined, { reloadSecs: 30 });
|
||||
logger = log4js.getLogger('a-test');
|
||||
logger.info("info1");
|
||||
logger.debug("debug2 - should be ignored");
|
||||
|
Loading…
Reference in New Issue
Block a user