More improved logging around client changes

This commit is contained in:
Bryan Ashby
2022-08-31 11:47:03 -06:00
parent 2d8c896ad4
commit 695bb40b17
2 changed files with 6 additions and 6 deletions

View File

@@ -60,6 +60,11 @@ function ClientTerminal(output) {
set: function (ttype) {
termType = ttype.toLowerCase();
Log.debug(
{ encoding: this.outputEncoding },
`Terminal type changed to ${termType}; Adjusting output encoding`
);
if (this.isNixTerm()) {
this.outputEncoding = 'utf8';
} else {
@@ -69,11 +74,6 @@ function ClientTerminal(output) {
// :TODO: according to this: http://mud-dev.wikidot.com/article:telnet-client-identification
// Windows telnet will send "VTNT". If so, set termClient='windows'
// there are some others on the page as well
Log.debug(
{ encoding: this.outputEncoding },
'Set output encoding due to terminal type change'
);
},
});