use the log service for this sort of thing (see https://github.com/angular/angular.js/blob/53ec5e13e5955830b6751019eef232bd2125c0b6/test/ng/compileSpec.js#L6 `beforeEach(logProvider)` to set that up)