mirror of
https://github.com/unraid/api.git
synced 2026-01-24 17:38:37 -06:00
fix: hide excessive logs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user