1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

ignore default store from logging

This commit is contained in:
Hiroyasu Nishiyama 2018-07-19 14:12:01 +09:00
parent 31ee1be81e
commit 7612481570

View File

@ -35,6 +35,7 @@ var hasConfiguredStore = false;
var unknownStores = {}; var unknownStores = {};
function logUnknownStore(name) { function logUnknownStore(name) {
if (name) {
var count = unknownStores[name] || 0; var count = unknownStores[name] || 0;
if (count == 0) { if (count == 0) {
log.warn(log._("context.unknown-store", {name: name})); log.warn(log._("context.unknown-store", {name: name}));
@ -42,6 +43,7 @@ function logUnknownStore(name) {
unknownStores[name] = count; unknownStores[name] = count;
} }
} }
}
function logStores() { function logStores() {
for(var name in stores) { for(var name in stores) {