fix 'logging in' debug string so it prints the actual username being used

This commit is contained in:
Dan Mills 2008-12-01 14:17:44 -08:00
Родитель d22e1ed5a8
Коммит a4a03dd03a
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -453,8 +453,6 @@ WeaveSvc.prototype = {
_login: function WeaveSvc__login(username, password, passphrase) { _login: function WeaveSvc__login(username, password, passphrase) {
let self = yield; let self = yield;
this._log.debug("Logging in user " + this.username);
if (typeof(username) != 'undefined') if (typeof(username) != 'undefined')
this.username = username; this.username = username;
if (typeof(password) != 'undefined') if (typeof(password) != 'undefined')
@ -467,6 +465,8 @@ WeaveSvc.prototype = {
if (!this.password) if (!this.password)
throw "No password given or found in password manager"; throw "No password given or found in password manager";
this._log.debug("Logging in user " + this.username);
yield this._verifyLogin.async(this, self.cb, this.username, this.password); yield this._verifyLogin.async(this, self.cb, this.username, this.password);
this._loggedIn = true; this._loggedIn = true;