From bf87208b923ac679dbbbdfd12f14dcd13370364c Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sat, 12 Aug 2023 22:20:14 +0300 Subject: [PATCH] debug statement --- src/MariaDB.ts | 2 ++ src/interfaces/Logger.ts | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/MariaDB.ts b/src/MariaDB.ts index cab4c64..a0f72a8 100644 --- a/src/MariaDB.ts +++ b/src/MariaDB.ts @@ -266,6 +266,8 @@ class MariaDB // This is a bit of a clusterfuck but it seems to work #statusUpdate (update: StatusUpdate) { + this.#logger.debug('Status update'); + this.#logger.debug(update); if (!update.members.length) { if (update.status === 'disconnected') diff --git a/src/interfaces/Logger.ts b/src/interfaces/Logger.ts index 154bc3c..4c2b2e6 100644 --- a/src/interfaces/Logger.ts +++ b/src/interfaces/Logger.ts @@ -6,9 +6,9 @@ export type LoggerClientOptions = { } export interface ILogger { - info(str: string): void - status(str: string): void - debug(str: string): void - warn(str: string): void - error(str: string): void + info(str: string | object): void + status(str: string | object): void + debug(str: string | object): void + warn(str: string | object): void + error(str: string | object): void } \ No newline at end of file