зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1319972 - write a session ID to sync logs. r=tcsc
MozReview-Commit-ID: GY8tvMVJ0p1 --HG-- extra : rebase_source : 757c31ada9c14633076fc0d4bfac59234913f1b6
This commit is contained in:
Родитель
280c047810
Коммит
7b4704dcc1
|
@ -51,6 +51,11 @@ const STORAGE_INFO_TYPES = [INFO_COLLECTIONS,
|
|||
INFO_COLLECTION_COUNTS,
|
||||
INFO_QUOTA];
|
||||
|
||||
// A unique identifier for this browser session. Used for logging so
|
||||
// we can easily see whether 2 logs are in the same browser session or
|
||||
// after the browser restarted.
|
||||
XPCOMUtils.defineLazyGetter(this, "browserSessionID", Utils.makeGUID);
|
||||
|
||||
function Sync11Service() {
|
||||
this._notify = Utils.notify("weave:service:");
|
||||
}
|
||||
|
@ -1077,7 +1082,7 @@ Sync11Service.prototype = {
|
|||
sync: function sync(engineNamesToSync) {
|
||||
let dateStr = Utils.formatTimestamp(new Date());
|
||||
this._log.debug("User-Agent: " + Utils.userAgent);
|
||||
this._log.info("Starting sync at " + dateStr);
|
||||
this._log.info(`Starting sync at ${dateStr} in browser session ${browserSessionID}`);
|
||||
this._catch(function() {
|
||||
// Make sure we're logged in.
|
||||
if (this._shouldLogin()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче