fix(microservices): use debug log level for ping timer status (nats) #7772

This commit is contained in:
Kamil Myśliwiec
2021-08-06 08:52:20 +02:00
parent 89c7c5009a
commit f91cd20230
2 changed files with 12 additions and 2 deletions

View File

@@ -138,7 +138,12 @@ export class ServerNats extends Server implements CustomTransportStrategy {
`NatsError: type: "${status.type}", data: "${data}".`,
);
} else {
this.logger.log(`NatsStatus: type: "${status.type}", data: "${data}".`);
const message = `NatsStatus: type: "${status.type}", data: "${data}".`;
if (status.type === 'pingTimer') {
this.logger.debug(message);
} else {
this.logger.log(message);
}
}
}
}