diff --git a/cmd/storemsgcounter/execute.go b/cmd/storemsgcounter/execute.go index 8b97384..5628589 100644 --- a/cmd/storemsgcounter/execute.go +++ b/cmd/storemsgcounter/execute.go @@ -21,6 +21,7 @@ import ( "github.com/waku-org/storenode-messages/internal/logging" "github.com/waku-org/storenode-messages/internal/persistence" "go.uber.org/zap" + "go.uber.org/zap/zapcore" "google.golang.org/protobuf/proto" ) @@ -92,8 +93,13 @@ func Execute(ctx context.Context, options Options) error { return err } + lvl, err := zapcore.ParseLevel(options.LogLevel) + if err != nil { + return err + } + wakuNode, err := node.New( - node.WithLogLevel(zap.DebugLevel), // options.LogLevel + node.WithLogLevel(lvl), node.WithNTP(), node.WithClusterID(uint16(options.ClusterID)), node.WithHostAddress(hostAddr), diff --git a/cmd/storemsgcounter/main.go b/cmd/storemsgcounter/main.go index 88efbed..3fa18e0 100644 --- a/cmd/storemsgcounter/main.go +++ b/cmd/storemsgcounter/main.go @@ -11,7 +11,7 @@ var options Options func main() { // Defaults - options.LogLevel = "INFO" + options.LogLevel = "DEBUG" options.LogEncoding = "console" app := &cli.App{