mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Enclosed stdout.setEncoding("utf8")
inside a isTTY
check
This commit is contained in:
parent
873f9c7aad
commit
3cbadf9ce9
@ -9,7 +9,9 @@ export class Program {
|
|||||||
private errorHandler: ErrorHandler;
|
private errorHandler: ErrorHandler;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
process.stdout.setEncoding("utf8");
|
if (process.stdout.isTTY) {
|
||||||
|
process.stdout?.setEncoding("utf8");
|
||||||
|
}
|
||||||
process.title = "SPT Server";
|
process.title = "SPT Server";
|
||||||
|
|
||||||
this.errorHandler = new ErrorHandler();
|
this.errorHandler = new ErrorHandler();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user