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