Skip to content

Commit

Permalink
Update the log message containing response time statistics
Browse files Browse the repository at this point in the history
The current log message includes the floats with 19 decimal points of
precision for no good reason.
  • Loading branch information
m-horky committed Jan 25, 2024
1 parent b593913 commit ed0e16b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rhsm/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,9 @@ def _update_smoothed_response_time(self, response_time: float):
self.smoothed_rt = response_time
else:
self.smoothed_rt = (self.ALPHA * self.smoothed_rt) + ((1 - self.ALPHA) * response_time)
log.debug("Response time: %s, Smoothed response time: %s" % (response_time, self.smoothed_rt))
log.debug(
f"Response time statistics: {response_time:.4f}s (latest), {self.smoothed_rt:.4f}s (smoothed)"
)

def validateResult(self, result: dict, request_type: str = None, handler: str = None) -> None:
"""
Expand Down

0 comments on commit ed0e16b

Please sign in to comment.