typo
skip writing if logfile is not writable