diff --git a/awx/ui/static/js/app.js b/awx/ui/static/js/app.js index 73675b9be2..3c6af0934c 100644 --- a/awx/ui/static/js/app.js +++ b/awx/ui/static/js/app.js @@ -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 {