mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-02 15:14:27 +00:00
Give a logger to State and add debug logs
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
This commit is contained in:
@@ -23,10 +23,10 @@ Sends a generic event payload with the configuration found in the scanned direct
|
||||
Aliases: []string{},
|
||||
Flags: []cli.Flag{},
|
||||
Action: func(c *cli.Context) error {
|
||||
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
|
||||
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr}).With().Caller().Logger()
|
||||
g := herd.DAG()
|
||||
|
||||
s := &mount.State{Rootdir: "/"}
|
||||
s := &mount.State{Logger: log.Logger, Rootdir: "/"}
|
||||
|
||||
s.Register(g)
|
||||
|
||||
|
Reference in New Issue
Block a user