all repos — searchix @ 180d4cf8780230e5af64e1750a2b2e4b87d519d3

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: disable storm internal logging

Alan Pearce
commit

180d4cf8780230e5af64e1750a2b2e4b87d519d3

parent

ad69a8fe77bd853143457913b62ce7d6f5bc2946

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.gointernal/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 {