diff options
-rw-r--r-- | data/lib/logging-front.js | 4 | ||||
-rw-r--r-- | data/lib/rhbzpage.js | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/data/lib/logging-front.js b/data/lib/logging-front.js index d186d7f..8d383e8 100644 --- a/data/lib/logging-front.js +++ b/data/lib/logging-front.js @@ -82,7 +82,3 @@ function setUpLogging () { } */ } - -if (window.location.hostname == "bugzilla.redhat.com") { - setUpLogging(); -} diff --git a/data/lib/rhbzpage.js b/data/lib/rhbzpage.js index 22e3178..a61eedf 100644 --- a/data/lib/rhbzpage.js +++ b/data/lib/rhbzpage.js @@ -476,6 +476,11 @@ function RHBZinit() { } } + // setup logging only when we ask for it + if (config.submitsLogging && (window.location.hostname == "bugzilla.redhat.com")) { + setUpLogging(); + } + // Dig out backtrace protection against double-firing? btSnippet = ""; |