Replace log.warn with log.err