chore(fix): when logger.level clones category from parent/default, to also clone over useCallStack

This commit is contained in:
Lam Wei Li 2022-03-18 03:59:58 +08:00
parent 58cfdc3fca
commit 17bbc78401
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF

View File

@ -193,6 +193,7 @@ const setLevelForCategory = (category, level) => {
debug('setLevelForCategory: no config found for category, '
+ `found ${sourceCategoryConfig} for parents of ${category}`);
categoryConfig = { appenders: sourceCategoryConfig.appenders };
categoryConfig.enableCallStack = sourceCategoryConfig.enableCallStack;
}
categoryConfig.level = level;
categories.set(category, categoryConfig);