fix query in get_log_level