- convert console.warn to $log.warn