feat: disable storm internal logging
2 files changed, 0 insertions(+), 21 deletions(-)
changed files
D internal/storage/log.go
@@ -1,15 +0,0 @@ -package storage - -import "go.uber.org/zap" - -type Logger struct { - *zap.SugaredLogger -} - -func (l Logger) Warning(v ...any) { - l.Warn(v...) -} - -func (l Logger) Warningf(format string, v ...any) { - l.Warnf(format, v...) -}
M internal/storage/store.go → internal/storage/store.go
@@ -11,7 +11,6 @@ "github.com/Southclaws/fault/fmsg" "github.com/asdine/storm/v3" "github.com/asdine/storm/v3/codec/gob" "go.etcd.io/bbolt" - "go.uber.org/zap" "alin.ovh/searchix/internal/config" "alin.ovh/searchix/internal/file"@@ -37,11 +36,6 @@ bb, err := storm.Open(path, storm.Codec(gob.Codec), storm.BoltOptions(0o600, &bbolt.Options{ Timeout: 1 * time.Second, - Logger: Logger{ - opts.Logger.Named("bolt").GetLogger().Sugar().WithOptions( - zap.IncreaseLevel(zap.InfoLevel), - ), - }, }), ) if err != nil {