From 025d863491d6792f4d6e2293eee73163e9e90145 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 26 Apr 2011 19:41:01 +0200 Subject: Setup logging of submits only when asked for. Fixes #86 --- data/lib/logging-front.js | 4 ---- data/lib/rhbzpage.js | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'data') 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 55e0cc5..2e68c0a 100644 --- a/data/lib/rhbzpage.js +++ b/data/lib/rhbzpage.js @@ -474,6 +474,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 = ""; -- cgit