def __log_bandwidth_stats(self, overall_stats):
        """Logs the agent_requests message that we periodically write to the agent log to give overall request
        stats.

        This includes such metrics the total bytes sent and received, failed requests, etc.

        @param overall_stats: The overall stats for the agent.
        @type overall_stats: OverallStats
        """
        stats = overall_stats
        # Ok, this is cheating, but we are going to hide some debug information in this line when it is turned on.
        if self.__config.debug_init:
            extra = ' is_agent=%d' % self.__controller.is_agent()
        else:
            extra = ''

        log.info('agent_requests requests_sent=%ld requests_failed=%ld bytes_sent=%ld bytes_received=%ld '
                 'request_latency_secs=%lf connections_created=%ld%s' % (stats.total_requests_sent,
                                                                         stats.total_requests_failed,
                                                                         stats.total_request_bytes_sent,
                                                                         stats.total_response_bytes_received,
                                                                         stats.total_request_latency_secs,
                                                                         stats.total_connections_created, extra))
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/agent_main.py/ScalyrAgent.__log_bandwidth_stats/original