feat: debug log decoded conf
This commit is contained in:
parent
073fb39316
commit
3882a311e7
|
@ -2,6 +2,7 @@ package stage
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log/slog"
|
||||||
|
|
||||||
"github.com/mcuadros/go-defaults"
|
"github.com/mcuadros/go-defaults"
|
||||||
"github.com/mitchellh/mapstructure"
|
"github.com/mitchellh/mapstructure"
|
||||||
|
@ -14,5 +15,6 @@ func DecodeConf[T any](confAny any) (*T, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to decode conf: %w", err)
|
return nil, fmt.Errorf("failed to decode conf: %w", err)
|
||||||
}
|
}
|
||||||
|
slog.Debug("conf decode", "conf", conf)
|
||||||
return conf, nil
|
return conf, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user