'Remove client.*.log files in favour of client.*.DEBUG files.'

def remove_redundant_client_logs(self):

    debug_dir = os.path.join(self.server_results_dir, 'debug')
    debug_files = [f for f in os.listdir(debug_dir) if re.search('^client\\.\\d+\\.DEBUG$', f)]
    for debug_file in debug_files:
        log_file = debug_file.replace('DEBUG', 'log')
        log_file = os.path.join(debug_dir, log_file)
        if os.path.exists(log_file):
            os.remove(log_file)
