[PATCH 1/3] log: make log_has_file() static