mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 06:28:01 -03:30
Add Debug.log helper for easy logging
This commit is contained in:
parent
8e092714fb
commit
3db561141e
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user