Add Debug.log helper for easy logging

This commit is contained in:
Joe Fiorini 2015-01-22 17:47:29 -05:00
parent 8e092714fb
commit 3db561141e

View File

@ -10,6 +10,14 @@
var urlPrefix,
$AnsibleConfig;
window.Debug = {};
window.Debug.log = function(label, obj) {
if (Debug.enabled) {
console.log(label + ":", obj);
}
return obj;
};
if ($basePath) {
urlPrefix = $basePath;
} else {