Skip to content

Commit

Permalink
feat: some pino adapter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zaida04 committed Mar 28, 2024
1 parent 08b9208 commit 944ab01
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/gil/lib/adapters/logging/PinoAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 944ab01

Please sign in to comment.