aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/rhbzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-26 19:41:01 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-04-26 19:41:01 +0200
commit025d863491d6792f4d6e2293eee73163e9e90145 (patch)
tree68c69e0e13fcf51a428cf78385c289184dce02b2 /data/lib/rhbzpage.js
parentf5bd0d092b9fc8d8bf770b4595dd788e8214c13d (diff)
downloadbugzilla-triage-025d863491d6792f4d6e2293eee73163e9e90145.tar.gz
Setup logging of submits only when asked for.
Fixes #86
Diffstat (limited to 'data/lib/rhbzpage.js')
-rw-r--r--data/lib/rhbzpage.js5
1 files changed, 5 insertions, 0 deletions
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 = "";