Added warning if log fails.