Skip to content

Commit

Permalink
Update logging levels
Browse files Browse the repository at this point in the history
  • Loading branch information
DSpeichert committed Sep 6, 2021
1 parent b0020aa commit 2636b54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dhcpd/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (server *Server) HandleMsg4(buf []byte, oob *ipv4.ControlMessage, peer net.

manifest = server.store.FindByMAC(req.ClientHWAddr)
if manifest == nil {
server.logger.Debug().
server.logger.Info().
Str("MAC", req.ClientHWAddr.String()).
Msg("ignore packet from unknown MAC")
resp = nil
Expand Down Expand Up @@ -221,7 +221,7 @@ response:
}
}

server.logger.Trace().
server.logger.Debug().
Interface("response", resp).
Msg("sending DHCP packet")

Expand All @@ -233,7 +233,7 @@ response:
}

} else {
server.logger.Info().
server.logger.Trace().
Msg("dropping request because response is nil")
}
}
Expand Down

0 comments on commit 2636b54

Please sign in to comment.