add analytics cli commands

This commit is contained in:
Aleksandr Trushkin
2024-02-07 12:24:02 +03:00
parent 988b22a08f
commit 838d25d878
3 changed files with 159 additions and 2 deletions

View File

@ -35,10 +35,11 @@ func Open(ctx context.Context, path string, debug bool, log zerolog.Logger) (*ba
log: log.With().Str("db", "badger").Logger(),
}
level := badger.INFO
level := badger.WARNING
if debug {
level = badger.DEBUG
}
opts := badger.DefaultOptions(path).
WithLogger(bl).
WithLoggingLevel(level).