Another solution would be to do the exact same thing but for what I already have: only log if some variable is set:

```js
debugMsg: function(msg) {
    if (DEBUG) {
        console.debug('WebRTC: ' + msg);
    }
},

debugObj: function(obj) {
    if (DEBUG) {
        console.debug(obj);
    }
},

errorMsg: function(msg) {
    if (DEBUG) {
        console.error('WebRTC: ' + msg);
    }
},
```

`DEBUG` may be set to `true` when developing.

Or if you prefer the `A.log()` infrastructure, I have no problem with this.