From 61888d1a308334d24d9f31792fd0bc90a74ca4af Mon Sep 17 00:00:00 2001 From: Siddharth Suresh Date: Tue, 13 Jun 2023 18:34:23 +0530 Subject: [PATCH] fix: blitz logging formatting (#4158) * fix blitz logging setup * changeset * Update packages/blitz/src/logging.ts --- .changeset/tame-rocks-unite.md | 5 +++++ packages/blitz/src/logging.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tame-rocks-unite.md diff --git a/.changeset/tame-rocks-unite.md b/.changeset/tame-rocks-unite.md new file mode 100644 index 0000000000..cd765503f7 --- /dev/null +++ b/.changeset/tame-rocks-unite.md @@ -0,0 +1,5 @@ +--- +"blitz": patch +--- + +Fix log formatting to not show the path of blitz rpc diff --git a/packages/blitz/src/logging.ts b/packages/blitz/src/logging.ts index 310baa44af..10ddbe7701 100644 --- a/packages/blitz/src/logging.ts +++ b/packages/blitz/src/logging.ts @@ -26,7 +26,7 @@ export const BlitzLogger = (settings: BlitzLoggerSettings = {}) => { maskValuesOfKeys: ["password", "passwordConfirmation", "currentPassword"], type: process.env.NODE_ENV === "production" ? "json" : "pretty", prettyLogTemplate: - "{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}}\t{{logLevelName}}\t[{{filePathWithLine}}{{name}}]\t", + "{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}}\t{{logLevelName}}\t[{{name}}]\t", ...settings, })