Add condition for get_log_docs()