mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 04:47:44 -02:30
Add Debug.log helper for easy logging
This commit is contained in:
@@ -10,6 +10,14 @@
|
|||||||
var urlPrefix,
|
var urlPrefix,
|
||||||
$AnsibleConfig;
|
$AnsibleConfig;
|
||||||
|
|
||||||
|
window.Debug = {};
|
||||||
|
window.Debug.log = function(label, obj) {
|
||||||
|
if (Debug.enabled) {
|
||||||
|
console.log(label + ":", obj);
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
|
||||||
if ($basePath) {
|
if ($basePath) {
|
||||||
urlPrefix = $basePath;
|
urlPrefix = $basePath;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user