diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-21 15:59:49 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-04-21 15:59:49 +0200 |
commit | 400ba1a166ca82acc9c2f645a2faa6781c60180f (patch) | |
tree | 06d8aebd76526a87c18895529606e8621d68bbdd /data/lib/rhbzpage.js | |
parent | 0f3cebd7a1fd94a0291c52ef7529b3767e636637 (diff) | |
download | bugzilla-triage-400ba1a166ca82acc9c2f645a2faa6781c60180f.tar.gz |
Add better logging support.
https://bugzilla.mozilla.org/show_bug.cgi?id=582760 is still unfixed.
Diffstat (limited to 'data/lib/rhbzpage.js')
-rw-r--r-- | data/lib/rhbzpage.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/data/lib/rhbzpage.js b/data/lib/rhbzpage.js index 8831b24..2e6cf3d 100644 --- a/data/lib/rhbzpage.js +++ b/data/lib/rhbzpage.js @@ -1,6 +1,9 @@ // Released under the MIT/X11 license // http://www.opensource.org/licenses/mit-license.php +// Are we debugging? +var debugFlag = true; + // For identification of graphics card var manuChipStrs = [ [ "ATI Radeon", "ATI", "1002" ], [ "ATI Mobility Radeon", "ATI", "1002" ], @@ -131,6 +134,7 @@ function RHcentralCommandDispatch(cmdLabel, cmdParams) { markBugTriaged(); break; case "chipMagic": + console.myDebug("cmdParams = " + cmdParams.toSource()); fillInWhiteBoard(cmdParams); break; // If we don't have it here, call superclass method @@ -149,7 +153,7 @@ function RHcentralCommandDispatch(cmdLabel, cmdParams) { function markBadAttachments(atts) { var badMIMEArray = [ "application/octet-stream", "text/x-log", "undefined" ]; if (!constantData.passwordState.passAvailable) { - console.log("markBadAttachments : No password, no XML-RPC calls; sorry"); + console.myDebug("markBadAttachments : No password, no XML-RPC calls; sorry"); return null; } @@ -242,6 +246,7 @@ function fillInWhiteBoard(PCIidArrObj) { } } + console.myDebug("fillInWhiteBoard: cardName = " + cardName); clickMouse("editme_action"); var titleElem = document.getElementById('short_desc'); titleElem.value = '[' + cardName + ']\u00A0' + titleElem.value; @@ -379,7 +384,7 @@ function addClosingUpstream() { centralCommandDispatch("resolution", "UPSTREAM"); } else { - console.log("No external bug specified among the External References!"); + console.myDebug("No external bug specified among the External References!"); } } |