def _setup_logging(cls): host = cls._tcp_service if cls._tcp_service else cls._http_service identifier = '{}_{}'.format(host.name, host.socket_address[1]) setup_logging(identifier) Stats.service_name = host.name Stats.periodic_stats_logger() Aggregator.periodic_aggregated_stats_logger()
def _setup_logging(cls): host = cls._tcp_service if cls._tcp_service else cls._http_service setup_logging('{}_{}'.format(host.name, host.socket_address[1])) Stats.service_name = host.name Stats.periodic_stats_logger()