Adjusted log_client