Wouldn't it be better to inject $log and use $log.warn here?