fix: better logger prefix

This commit is contained in:
Alexis Tyler
2021-01-15 11:40:34 +10:30
parent b39fb3076b
commit 0c76be3782

View File

@@ -4,7 +4,7 @@ import { MOTHERSHIP_GRAPHQL_LINK } from '../consts';
import { userCache, CachedServers } from '../cache';
import { log as logger } from '../core';
const log = logger.createChild({ prefix: '[@unraid/subscribe-to-servers]: '});
const log = logger.createChild({ prefix: 'subscribe-to-servers'});
const client = new SubscriptionClient(MOTHERSHIP_GRAPHQL_LINK, {
reconnect: true,
lazy: true, // only connect when there is a query