fix: hide excessive logs

This commit is contained in:
Alexis Tyler
2021-02-03 09:48:53 +10:30
parent 434a4d25e4
commit a7543d8a1a
2 changed files with 4 additions and 4 deletions

View File

@@ -26,10 +26,10 @@ export class InternalGraphql extends CustomSocket {
return;
}
logger.debug('Received message from the internal API, forwarding to the relay');
logger.silly('Received message from the internal API, forwarding to the relay');
// Forward message
await sendMessage(sockets.get('relay')?.connection, data);
logger.debug('Message sent to the API successfully.');
logger.silly('Message sent to the API successfully.');
} catch (error: unknown) {
if (isNodeError(error, AppError)) {
// Relay socket is closed, close internal one

View File

@@ -65,9 +65,9 @@ export class MothershipSocket extends CustomSocket {
const sendMessage = this.sendMessage.bind(this);
return async (data: string) => {
try {
this.logger.debug('Recieved message from mothership\'s relay, forwarding to the internal graphql connection');
this.logger.silly('Recieved message from mothership\'s relay, forwarding to the internal graphql connection');
await sendMessage(sockets.get('internalGraphql')?.connection, data);
this.logger.debug('Message sent to the internal graphql connection successfully.');
this.logger.silly('Message sent to the internal graphql connection successfully.');
} catch (error: unknown) {
if (isNodeError(error, AppError)) {
// Something weird happened while processing the message