feat: debug log decoded conf
All checks were successful
build / build (push) Successful in 1m46s
build / trigger-build-image (push) Successful in 7s

This commit is contained in:
张泊明518370910136 2024-10-10 23:55:06 -04:00
parent 073fb39316
commit 3882a311e7
GPG Key ID: D47306D7062CDA9D

View File

@ -2,6 +2,7 @@ package stage
import (
"fmt"
"log/slog"
"github.com/mcuadros/go-defaults"
"github.com/mitchellh/mapstructure"
@ -14,5 +15,6 @@ func DecodeConf[T any](confAny any) (*T, error) {
if err != nil {
return nil, fmt.Errorf("failed to decode conf: %w", err)
}
slog.Debug("conf decode", "conf", conf)
return conf, nil
}