From 06318a15e1efd74013dd52f86e510076d655cbaa Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Thu, 19 Oct 2023 21:14:05 +0200 Subject: [PATCH] Log store engine type (#1234) --- management/server/store.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/management/server/store.go b/management/server/store.go index 458912e97..66b239f96 100644 --- a/management/server/store.go +++ b/management/server/store.go @@ -6,6 +6,8 @@ import ( "strings" "time" + log "github.com/sirupsen/logrus" + "github.com/netbirdio/netbird/management/server/telemetry" ) @@ -67,8 +69,10 @@ func NewStore(kind StoreEngine, dataDir string, metrics telemetry.AppMetrics) (S } switch kind { case FileStoreEngine: + log.Info("using JSON file store engine") return NewFileStore(dataDir, metrics) case SqliteStoreEngine: + log.Info("using SQLite store engine") return NewSqliteStore(dataDir, metrics) default: return nil, fmt.Errorf("unsupported kind of store %s", kind)