From 761248157018c2d92009deab615ae204ebbe2cec Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Thu, 19 Jul 2018 14:12:01 +0900 Subject: [PATCH] ignore default store from logging --- red/runtime/nodes/context/index.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/red/runtime/nodes/context/index.js b/red/runtime/nodes/context/index.js index 9e159f6bb..467aa7b74 100644 --- a/red/runtime/nodes/context/index.js +++ b/red/runtime/nodes/context/index.js @@ -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; + } } }