mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Just like request and response, events are also logged as formatted json for readability (#54105)
This commit is contained in:
@@ -319,7 +319,7 @@ export function formatMessage<T extends protocol.Message>(msg: T, logger: Logger
|
||||
|
||||
const json = JSON.stringify(msg);
|
||||
if (verboseLogging) {
|
||||
logger.info(`${msg.type}:${indent(json)}`);
|
||||
logger.info(`${msg.type}:${indent(JSON.stringify(msg, undefined, " "))}`);
|
||||
}
|
||||
|
||||
const len = byteLength(json, "utf8");
|
||||
|
||||
Reference in New Issue
Block a user