зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1384818 - flush sync log files on sync reset. r=eoger
MozReview-Commit-ID: H6CkvHGxAmx --HG-- extra : rebase_source : 4fd55ac857c225e0a7de35f0049e873cc362b2db
This commit is contained in:
Родитель
eafa227d8d
Коммит
4f86008efc
|
@ -599,6 +599,7 @@ ErrorHandler.prototype = {
|
|||
Svc.Obs.add("weave:service:login:error", this);
|
||||
Svc.Obs.add("weave:service:sync:error", this);
|
||||
Svc.Obs.add("weave:service:sync:finish", this);
|
||||
Svc.Obs.add("weave:service:start-over:finish", this);
|
||||
|
||||
this.initLogs();
|
||||
},
|
||||
|
@ -716,6 +717,10 @@ ErrorHandler.prototype = {
|
|||
this.dontIgnoreErrors = false;
|
||||
this.notifyOnNextTick("weave:ui:sync:finish");
|
||||
break;
|
||||
case "weave:service:start-over:finish":
|
||||
// ensure we capture any logs between the last sync and the reset completing.
|
||||
this.resetFileLog();
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче