NOISSUE - Change logging level from Info to Debug for State method (#422)
CI / ci (push) Has been cancelled

Signed-off-by: Sammy Oina <sammyoina@gmail.com>
This commit is contained in:
Sammy Kerata Oina
2025-04-16 11:11:29 +03:00
committed by GitHub
parent 9a5cc44b2a
commit dffefc45d8
+1 -1
View File
@@ -34,7 +34,7 @@ func LoggingMiddleware(svc agent.Service, logger *slog.Logger) agent.Service {
func (lm *loggingMiddleware) State() (state string) {
defer func(begin time.Time) {
message := fmt.Sprintf("Method State took %s to complete with state %s", time.Since(begin), state)
lm.logger.Info(message)
lm.logger.Debug(message)
}(time.Now())
return lm.svc.State()
}