Shouldn't we use `$log` service here instead of console?