Fixed get_logs