Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Reduce Info-Log verbosity in REST-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoCopter committed Mar 21, 2023
1 parent dc78aab commit cea4aa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/agent/rest_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,20 @@ func (ra *RestAgent) receiveBundleMessage(msg BundleMessage) {
log.WithFields(log.Fields{
"bundle": msg.Bundle.ID().String(),
"uuid": uuid,
}).Info("REST Application Agent delivering message to a client's inbox")
}).Debug("REST Application Agent delivering message to a client's inbox")
} else {
_, exists = mailbox[msg.Bundle.ID()]
if !exists {
mailbox[msg.Bundle.ID()] = msg.Bundle
log.WithFields(log.Fields{
"bundle": msg.Bundle.ID().String(),
"uuid": uuid,
}).Info("REST Application Agent delivering message to a client's inbox")
}).Debug("REST Application Agent delivering message to a client's inbox")
} else {
log.WithFields(log.Fields{
"bundle": msg.Bundle.ID().String(),
"uuid": uuid,
}).Info("REST Application Agent not delivering message to a client's inbox. Message already present.")
}).Debug("REST Application Agent not delivering message to a client's inbox. Message already present.")
}
}
}
Expand Down

0 comments on commit cea4aa1

Please sign in to comment.