Just like request and response, events are also logged as formatted json for readability (#54105)

This commit is contained in:
Sheetal Nandi
2023-05-02 13:32:12 -07:00
committed by GitHub
parent 44f4e276b7
commit bbb9f2ebcf
232 changed files with 24455 additions and 1664 deletions
+1 -1
View File
@@ -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");