fix: change logging to silly level

This commit is contained in:
Alexis Tyler
2020-11-30 21:08:03 +10:30
parent d5b3b6e511
commit 9799600b87
2 changed files with 7 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ Object.entries(getPermissions()).forEach(([roleName, role]) => {
}
});
coreLogger.debug('Loaded permissions', JSON.stringify(allPermissions));
coreLogger.silly('Loaded permissions', JSON.stringify(allPermissions));
export {
ac

View File

@@ -90,7 +90,9 @@ class MothershipService {
public async connect(wsServer: WebSocket.Server, currentRetryAttempt: number = 0): Promise<void> {
this.connectionAttempt++;
mothershipLogger.debug('connectionAttempt', this.connectionAttempt);
if (currentRetryAttempt >= 1) {
mothershipLogger.debug('connection attempt %s', currentRetryAttempt);
}
const lock = await this.getLock();
try {
@@ -141,12 +143,12 @@ class MothershipService {
// Connection to local graphql endpoint is "closed"
this.localGraphqlApi.on('close', () => {
mothershipLogger.debug('ws:local-relay', 'close');
mothershipLogger.silly('ws:local-relay', 'close');
});
// Connection to local graphql endpoint is "open"
this.localGraphqlApi.on('open', () => {
mothershipLogger.debug('ws:local-relay', 'open');
mothershipLogger.silly('ws:local-relay', 'open');
// No API key, close internal connection
if (!apiKey) {
@@ -261,7 +263,7 @@ class MothershipService {
}
client.send(message);
mothershipLogger.debug('Message sent to mothership.', message);
mothershipLogger.silly('Message sent to mothership.', message);
} catch (error) {
mothershipLogger.error('Failed replying to mothership.', error);
};