зеркало из https://github.com/mozilla/gecko-dev.git
Bug 526661 - Use Firefox content to display the activity log
Just open the file as a tab to show the activity log. Remove related xul/js/strings. Saving can be done through normal Save Page As... No manual cleaning of the log, but the size is much smaller.
This commit is contained in:
Родитель
509504e15f
Коммит
43a1a96614
|
@ -1,3 +0,0 @@
|
|||
<!ENTITY dialog.title "Mozilla Weave Sync - Activity Log">
|
||||
<!ENTITY saveAsButton.label "Save As...">
|
||||
<!ENTITY clearButton.label "Clear Logs">
|
|
@ -1,2 +0,0 @@
|
|||
noLogAvailable.alert = No log available
|
||||
filePicker.title = Choose Destination File
|
|
@ -335,7 +335,8 @@ WeaveSvc.prototype = {
|
|||
if (!verbose.exists())
|
||||
verbose.create(verbose.NORMAL_FILE_TYPE, PERMS_FILE);
|
||||
|
||||
this._debugApp = new Log4Moz.RotatingFileAppender(verbose, formatter);
|
||||
let maxSize = 65536; // 64 * 1024 (64KB)
|
||||
this._debugApp = new Log4Moz.RotatingFileAppender(verbose, formatter, maxSize);
|
||||
this._debugApp.level = Log4Moz.Level[Svc.Prefs.get("log.appender.debugLog")];
|
||||
root.addAppender(this._debugApp);
|
||||
},
|
||||
|
|
|
@ -724,10 +724,6 @@ let Utils = {
|
|||
this.openDialog("ChangeSomething", "generic-change.xul");
|
||||
},
|
||||
|
||||
openLog: function Utils_openLog() {
|
||||
Utils._openChromeWindow("Log", "log.xul");
|
||||
},
|
||||
|
||||
getErrorString: function Utils_getErrorString(error, args) {
|
||||
try {
|
||||
return Str.errors.get(error, args || null);
|
||||
|
|
Загрузка…
Ссылка в новой задаче