logs: set sudo to no for localhosts

Change-Id: Iba6995fa0d90c0a7cc6a72c7ff17594fc81bc93d
(cherry picked from commit 3721c92b8e94b1430662d9e7032b0b6ed318da9f)