Don't create log if nothing to log.