ignore default store from logging

This commit is contained in:
Hiroyasu Nishiyama 2018-07-19 14:12:01 +09:00
parent 31ee1be81e
commit 7612481570
1 changed files with 7 additions and 5 deletions

View File

@ -35,11 +35,13 @@ var hasConfiguredStore = false;
var unknownStores = {};
function logUnknownStore(name) {
var count = unknownStores[name] || 0;
if (count == 0) {
log.warn(log._("context.unknown-store", {name: name}));
count++;
unknownStores[name] = count;
if (name) {
var count = unknownStores[name] || 0;
if (count == 0) {
log.warn(log._("context.unknown-store", {name: name}));
count++;
unknownStores[name] = count;
}
}
}