From 4d40d817eadf0e4da82d2cd8adf295fac7740e6e Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 2 Dec 2021 10:36:18 -0400 Subject: [PATCH] fix: display success message only if messages are loaded from the db --- waku/v2/protocol/waku_store/waku_store.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waku/v2/protocol/waku_store/waku_store.nim b/waku/v2/protocol/waku_store/waku_store.nim index da1160a31..7f5682b2f 100644 --- a/waku/v2/protocol/waku_store/waku_store.nim +++ b/waku/v2/protocol/waku_store/waku_store.nim @@ -459,8 +459,9 @@ proc init*(ws: WakuStore, capacity = DefaultStoreCapacity) = if res.isErr: warn "failed to load messages from store", err = res.error waku_store_errors.inc(labelValues = ["store_load_failure"]) + else: + info "successfully loaded from store" - info "successfully loaded from store" debug "the number of messages in the memory", messageNum=ws.messages.len waku_store_messages.set(ws.messages.len.int64, labelValues = ["stored"])