debug statement

This commit is contained in:
Erik 2023-08-12 22:20:14 +03:00
parent f36d020bce
commit bf87208b92
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68
2 changed files with 7 additions and 5 deletions

View File

@ -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')

View File

@ -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
}