зеркало из https://github.com/mozilla/gecko-dev.git
Bug 394979. search logging shows up in Ts. ifdef it. r=gavin
This commit is contained in:
Родитель
4d15a32026
Коммит
fb76c5017d
|
@ -205,6 +205,7 @@ const SEARCH_LOG_PREFIX = "*** Search: ";
|
|||
* logging pref (browser.search.log) is set to true.
|
||||
*/
|
||||
function LOG(aText) {
|
||||
#ifdef DEBUG
|
||||
var prefB = Cc["@mozilla.org/preferences-service;1"].
|
||||
getService(Ci.nsIPrefBranch);
|
||||
var shouldLog = false;
|
||||
|
@ -218,6 +219,7 @@ function LOG(aText) {
|
|||
getService(Ci.nsIConsoleService);
|
||||
consoleService.logStringMessage(aText);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
function ERROR(message, resultCode) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче