mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
fix(microservices): use debug log level for ping timer status (nats) #7772
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user