Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions comp/forwarder/defaultforwarder/transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,12 @@ func (t *HTTPTransaction) internalProcess(ctx context.Context, config config.Com
loggingFrequency := config.GetInt64("logging_frequency")

if transactionsSuccess.Value() == 1 {
log.Infof("Successfully posted payload to %q (%s), the agent will only log transaction success every %d transactions", logURL, resp.Status, loggingFrequency)
log.Debugf("Successfully posted payload to %q (%s), the agent will only log transaction success every %d transactions", logURL, resp.Status, loggingFrequency)
log.Tracef("Url: %q, response status %s, content length %d, payload: %q", logURL, resp.Status, resp.ContentLength, truncateBodyForLog(body))
return resp.StatusCode, body, nil
}
if transactionsSuccess.Value()%loggingFrequency == 0 {
log.Infof("Successfully posted payload to %q (%s)", logURL, resp.Status)
log.Debugf("Successfully posted payload to %q (%s)", logURL, resp.Status)
log.Tracef("Url: %q, response status %s, content length %d, payload: %q", logURL, resp.Status, resp.ContentLength, truncateBodyForLog(body))
return resp.StatusCode, body, nil
}
Expand Down
Loading