Skip to content

Commit

Permalink
Log store engine type (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon committed Oct 19, 2023
1 parent eeb38b7 commit 06318a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions management/server/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"strings"
"time"

log "github.com/sirupsen/logrus"

"github.com/netbirdio/netbird/management/server/telemetry"
)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 06318a1

Please sign in to comment.