We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5417e1 commit c46e1e9Copy full SHA for c46e1e9
cmd/nitro-val/config.go
@@ -2,6 +2,7 @@ package main
2
3
import (
4
"fmt"
5
+ "io"
6
"reflect"
7
"time"
8
@@ -145,8 +146,13 @@ func (c *ValidationNodeConfig) GetReloadInterval() time.Duration {
145
146
}
147
148
func (c *ValidationNodeConfig) Validate() error {
- // TODO
149
- return nil
+ if _, err := genericconf.HandlerFromLogType(c.LogType, io.Discard); err != nil {
150
+ return fmt.Errorf("invalid log-type: %w", err)
151
+ }
152
+ if _, err := genericconf.ToSlogLevel(c.LogLevel); err != nil {
153
+ return fmt.Errorf("invalid log-level: %w", err)
154
155
+ return c.Persistent.Validate()
156
157
158
var DefaultValidationNodeStackConfig = node.Config{
0 commit comments