I use angular with angular-permission library. Need to disable warnings in console.

[![angular logFn](https://i.stack.imgur.com/8SZAe.jpg)](https://i.stack.imgur.com/8SZAe.jpg)

This component (angular-permission) call angular $log service:
[![angular-permission](https://i.stack.imgur.com/KNk2o.jpg)](https://i.stack.imgur.com/KNk2o.jpg)

Tried disable this in config, but warning still shows:

> 
> $logProvider.debugEnabled(false);
> 
> 
> 

Code that invoke log:

```
function permissionMap($log) {
  if (PermPermissionStore.hasPermissionDefinition(privilegeName)) {
    PermPermissionStore.getPermissionDefinition(privilegeName);
      return permission.validatePermission();
    }

    $log.warn('Permission or role ' + privilegeName + ' was not defined.');
}

```