diff options
Diffstat (limited to 'cmd/earlyinit/uevent.go')
| -rw-r--r-- | cmd/earlyinit/uevent.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/earlyinit/uevent.go b/cmd/earlyinit/uevent.go index 0ab134cf..64f548ba 100644 --- a/cmd/earlyinit/uevent.go +++ b/cmd/earlyinit/uevent.go @@ -2,12 +2,12 @@ package main import ( "context" - "log" "time" "hakurei.app/fhs" "hakurei.app/internal/report" "hakurei.app/internal/uevent" + "hakurei.app/message" ) // newRejectColdboot returns a function to be called on every subsequent pending @@ -56,6 +56,7 @@ func newRejectColdboot() func() bool { // consume continuously consumes events from conn with retries. func consume( ctx context.Context, + msg message.Msg, r *report.Reporter, conn *uevent.Conn, uuid uevent.UUID, @@ -67,7 +68,7 @@ func consume( coldboot := true retry: if dispatchErr := conn.Consume(ctx, fhs.Sys, &uuid, events, coldboot, func(path string) { - log.Println("coldboot visited", path) + msg.Verbose("coldboot visited", path) }, func(err error) bool { if _, ok := err.(uevent.NeedsColdboot); ok && !nextColdboot() { r.Dispatch( |
