From f0fd4ce9869c72a56f8392ad9d5ff9dd920c34ac Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Thu, 22 Feb 2024 14:11:15 -0500 Subject: [PATCH] ref(core): Add codecov prefix to log messages (#76) --- .changeset/khaki-lions-glow.md | 8 ++++++++ packages/bundler-plugin-core/src/utils/logging.ts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/khaki-lions-glow.md diff --git a/.changeset/khaki-lions-glow.md b/.changeset/khaki-lions-glow.md new file mode 100644 index 00000000..3a1877b4 --- /dev/null +++ b/.changeset/khaki-lions-glow.md @@ -0,0 +1,8 @@ +--- +"@codecov/bundler-plugin-core": patch +"@codecov/rollup-plugin": patch +"@codecov/vite-plugin": patch +"@codecov/webpack-plugin": patch +--- + +Add codecov prefix to log messages diff --git a/packages/bundler-plugin-core/src/utils/logging.ts b/packages/bundler-plugin-core/src/utils/logging.ts index d15a0308..58eaa199 100644 --- a/packages/bundler-plugin-core/src/utils/logging.ts +++ b/packages/bundler-plugin-core/src/utils/logging.ts @@ -13,7 +13,7 @@ export function prepareMessage(msg: unknown): string { export function l(msg: string): void { // Required to properly log to the console // eslint-disable-next-line no-console - console.log(msg); + console.log(`[codecov] ${msg}`); } export function nl(): void {