diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-04 17:29:06 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:21 +0200 |
commit | e3ea5e8d5050890a8e7f17271d04954f71dad325 (patch) | |
tree | 5a3e645667ba06de0db7977a2fe17578254dd8cc | |
parent | 13e34216eb8b2015042b1fcc6af5efd7cd962c58 (diff) | |
download | freeipa-e3ea5e8d5050890a8e7f17271d04954f71dad325.tar.gz freeipa-e3ea5e8d5050890a8e7f17271d04954f71dad325.tar.xz freeipa-e3ea5e8d5050890a8e7f17271d04954f71dad325.zip |
Limit Provider reporting
https://fedorahosted.org/freeipa/ticket/3235
-rw-r--r-- | install/ui/src/freeipa/_base/Provider.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/_base/Provider.js b/install/ui/src/freeipa/_base/Provider.js index 16190bdbf..8d769a2eb 100644 --- a/install/ui/src/freeipa/_base/Provider.js +++ b/install/ui/src/freeipa/_base/Provider.js @@ -165,13 +165,15 @@ define(['dojo/_base/declare','dojo/_base/lang'], function(declare, lang) { } else if(this._handle_children(key)) { value = this._handling_provider.get(key); } else { - // Return key as value when it's not a proper key. - window.console.log('Using key as value:'+key); + // Report invalid keys + if (typeof key === 'string' && key[0] === '@') { + window.console.warn('Using key as value:'+key); + } } } var ret = value || alternate; - if (!ret) { + if (!ret && key) { window.console.log('No value for:'+key); } |