Add back pdfBugEnabled pref check in the |log| function in extensions/firefox/content/PdfStreamConverter.jsm

This commit is contained in:
Jonas Jenwald 2014-09-18 01:16:09 +02:00
parent 3ac9bd063d
commit c00951e3e4

View File

@ -114,6 +114,9 @@ function getStringPref(pref, def) {
} }
function log(aMsg) { function log(aMsg) {
if (!getBoolPref(PREF_PREFIX + '.pdfBugEnabled', false)) {
return;
}
var msg = 'PdfStreamConverter.js: ' + (aMsg.join ? aMsg.join('') : aMsg); var msg = 'PdfStreamConverter.js: ' + (aMsg.join ? aMsg.join('') : aMsg);
Services.console.logStringMessage(msg); Services.console.logStringMessage(msg);
dump(msg + '\n'); dump(msg + '\n');