Skip to content

Commit

Permalink
Merge pull request #725 from dehort/adjust_log_message_1
Browse files Browse the repository at this point in the history
Avoid logging the entire cloud-connector http request
  • Loading branch information
dehort authored Oct 24, 2024
2 parents ccfa46d + 83d89dc commit b15fbd8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion service/availability_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ func (acr availabilityCheckRequester) pingRHC(source *m.Source, rhcConnection *m
req.Header.Set("x-rh-cloud-connector-psk", cloudConnectorPsk)

// Log the request before sending it.
acr.Logger().Debugf(`[source_id: %d][rhc_connection_id: %d][rhc_connection_rhcid: %s] RHC connection status request: %#v`, source.ID, rhcConnection.ID, rhcConnection.RhcId, req)
acr.Logger().Debugf(`[source_id: %d][rhc_connection_id: %d][rhc_connection_rhcid: %s] RHC connection status request's body: %v`, source.ID, rhcConnection.ID, rhcConnection.RhcId, string(body))

resp, err := http.DefaultClient.Do(req)
Expand Down

0 comments on commit b15fbd8

Please sign in to comment.