docs: add mod name to log
parent
a084c9e004
commit
072c7d04d7
|
@ -20,6 +20,7 @@ var index string
|
||||||
var servePublic = http.FileServer(http.FS(public.FS))
|
var servePublic = http.FileServer(http.FS(public.FS))
|
||||||
|
|
||||||
var tmpl *engine.Engine
|
var tmpl *engine.Engine
|
||||||
|
var l = log.With().Str("mod", "kconfig").Logger()
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
tmpl = engine.Must(engine.New("").Parse(index))
|
tmpl = engine.Must(engine.New("").Parse(index))
|
||||||
|
@ -44,7 +45,7 @@ func New() *Kconfig {
|
||||||
AppName: "kconfig",
|
AppName: "kconfig",
|
||||||
Schema: defaultSchema,
|
Schema: defaultSchema,
|
||||||
Apply: func(b []byte) error {
|
Apply: func(b []byte) error {
|
||||||
log.Debug().Msgf("%s", b)
|
l.Debug().Msgf("%s", b)
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
Load: func() []byte {
|
Load: func() []byte {
|
||||||
|
|
Loading…
Reference in New Issue