Remove log level from the conf because the log level has to be set with the logLevel func

This commit is contained in:
Arnaud 2025-09-17 09:08:04 +02:00
parent 66e3fde545
commit 429e6d77a7
No known key found for this signature in database
GPG Key ID: B8FBC178F10CA7AE

View File

@ -174,7 +174,6 @@ const (
)
type CodexConfig struct {
LogLevel LogLevel `json:"log-level,omitempty"`
LogFormat LogFormat `json:"log-format,omitempty"`
MetricsEnabled bool `json:"metrics,omitempty"`
MetricsAddress string `json:"metrics-address,omitempty"`
@ -494,9 +493,7 @@ func (self *CodexNode) CodexSetEventCallback() {
}
func main() {
config := CodexConfig{
LogLevel: Info,
}
config := CodexConfig{}
node, err := CodexNew(config)
if err != nil {