From 944ab01a48098f7e19cfa9bdd36d65e8275fd655 Mon Sep 17 00:00:00 2001 From: "Zaid Arshad (Nico)" Date: Thu, 28 Mar 2024 01:50:14 -0400 Subject: [PATCH] feat: some pino adapter changes --- packages/gil/lib/adapters/logging/PinoAdapter.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/gil/lib/adapters/logging/PinoAdapter.ts b/packages/gil/lib/adapters/logging/PinoAdapter.ts index d4acc85d..7cd6487e 100644 --- a/packages/gil/lib/adapters/logging/PinoAdapter.ts +++ b/packages/gil/lib/adapters/logging/PinoAdapter.ts @@ -18,8 +18,9 @@ export class PinoAdapter extends LoggerAdapter { this.logger.info(message); } - public debug(message: string, decorate?: string): void { - if (decorate) this.logger.debug(`[DEBUG] ${decorate}: ${message}`); - else this.logger.debug(`[DEBUG] ${message}`); + // biome-ignore lint/suspicious/noExplicitAny: Allow for verbose logging + public debug(message: string, decorate?: any): void { + if (decorate) this.logger.debug(typeof decorate === "string" ? { extra_info: decorate } : decorate, message); + else this.logger.debug(message); } }