Clean up log output on state changes
This commit is contained in:
parent
c00ee156b9
commit
52e9cc48b0
16
core/rfb.js
16
core/rfb.js
|
@ -463,14 +463,18 @@
|
||||||
Util.Error('Fatal error, cannot continue');
|
Util.Error('Fatal error, cannot continue');
|
||||||
}
|
}
|
||||||
|
|
||||||
var cmsg = typeof(statusMsg) !== 'undefined' ? (" Msg: " + statusMsg) : "";
|
if (typeof(statusMsg) !== 'undefined') {
|
||||||
var fullmsg = "New state '" + state + "', was '" + oldstate + "'." + cmsg;
|
var cmsg = " Msg: " + statusMsg;
|
||||||
if (state === 'failed' || state === 'fatal') {
|
if (state === 'failed' || state === 'fatal') {
|
||||||
Util.Error(cmsg);
|
Util.Error(cmsg);
|
||||||
} else {
|
} else {
|
||||||
Util.Warn(cmsg);
|
Util.Warn(cmsg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var smsg = "New state '" + state + "', was '" + oldstate + "'.";
|
||||||
|
Util.Debug(smsg);
|
||||||
|
|
||||||
if (this._disconnTimer && state !== 'disconnect') {
|
if (this._disconnTimer && state !== 'disconnect') {
|
||||||
Util.Debug("Clearing disconnect timer");
|
Util.Debug("Clearing disconnect timer");
|
||||||
clearTimeout(this._disconnTimer);
|
clearTimeout(this._disconnTimer);
|
||||||
|
|
Loading…
Reference in New Issue