mirror of
https://github.com/unraid/api.git
synced 2026-05-08 08:00:19 -05:00
fix: change logging to silly level
This commit is contained in:
@@ -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 {
|
export {
|
||||||
ac
|
ac
|
||||||
|
|||||||
@@ -90,7 +90,9 @@ class MothershipService {
|
|||||||
|
|
||||||
public async connect(wsServer: WebSocket.Server, currentRetryAttempt: number = 0): Promise<void> {
|
public async connect(wsServer: WebSocket.Server, currentRetryAttempt: number = 0): Promise<void> {
|
||||||
this.connectionAttempt++;
|
this.connectionAttempt++;
|
||||||
mothershipLogger.debug('connectionAttempt', this.connectionAttempt);
|
if (currentRetryAttempt >= 1) {
|
||||||
|
mothershipLogger.debug('connection attempt %s', currentRetryAttempt);
|
||||||
|
}
|
||||||
|
|
||||||
const lock = await this.getLock();
|
const lock = await this.getLock();
|
||||||
try {
|
try {
|
||||||
@@ -141,12 +143,12 @@ class MothershipService {
|
|||||||
|
|
||||||
// Connection to local graphql endpoint is "closed"
|
// Connection to local graphql endpoint is "closed"
|
||||||
this.localGraphqlApi.on('close', () => {
|
this.localGraphqlApi.on('close', () => {
|
||||||
mothershipLogger.debug('ws:local-relay', 'close');
|
mothershipLogger.silly('ws:local-relay', 'close');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Connection to local graphql endpoint is "open"
|
// Connection to local graphql endpoint is "open"
|
||||||
this.localGraphqlApi.on('open', () => {
|
this.localGraphqlApi.on('open', () => {
|
||||||
mothershipLogger.debug('ws:local-relay', 'open');
|
mothershipLogger.silly('ws:local-relay', 'open');
|
||||||
|
|
||||||
// No API key, close internal connection
|
// No API key, close internal connection
|
||||||
if (!apiKey) {
|
if (!apiKey) {
|
||||||
@@ -261,7 +263,7 @@ class MothershipService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
client.send(message);
|
client.send(message);
|
||||||
mothershipLogger.debug('Message sent to mothership.', message);
|
mothershipLogger.silly('Message sent to mothership.', message);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
mothershipLogger.error('Failed replying to mothership.', error);
|
mothershipLogger.error('Failed replying to mothership.', error);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user