diff --git a/app/core/log.ts b/app/core/log.ts index 485f85165..117e03eb4 100644 --- a/app/core/log.ts +++ b/app/core/log.ts @@ -9,4 +9,5 @@ export const log = new Logger(); export const coreLogger = log.createChild({ prefix: '[@unraid/core]: '}); export const mothershipLogger = log.createChild({ prefix: '[@unraid/mothership]: '}); export const graphqlLogger = log.createChild({ prefix: '[@unraid/graphql]: '}); +export const relayLogger = log.createChild({ prefix: '[@unraid/relay]: '}); export const discoveryLogger = log.createChild({ prefix: '[@unraid/discovery]: '}); \ No newline at end of file diff --git a/app/core/modules/info/get-software-versions.ts b/app/core/modules/info/get-software-versions.ts index 77426593c..037fb7f3a 100644 --- a/app/core/modules/info/get-software-versions.ts +++ b/app/core/modules/info/get-software-versions.ts @@ -8,7 +8,7 @@ import { CacheManager } from '../../cache-manager'; import { CoreResult, CoreContext } from '../../types'; import { ensurePermission } from '../../utils'; -const cache = new CacheManager('unraid:modules:get-system'); +const cache = new CacheManager('unraid:modules:get-system-versions'); /** * Software versions. diff --git a/app/core/modules/info/get-unraid-version.ts b/app/core/modules/info/get-unraid-version.ts index 0721c52de..05acea8d9 100644 --- a/app/core/modules/info/get-unraid-version.ts +++ b/app/core/modules/info/get-unraid-version.ts @@ -11,7 +11,7 @@ import { FileMissingError, FatalAppError } from '../../errors'; import { ensurePermission } from '../../utils'; import { CoreResult, CoreContext } from '../../types'; -const cache = new CacheManager('unraid:modules:get-unraid'); +const cache = new CacheManager('unraid:modules:get-unraid-version'); interface Result extends CoreResult { json: { diff --git a/app/run.ts b/app/run.ts index 6a2bfabfe..70e3efe55 100644 --- a/app/run.ts +++ b/app/run.ts @@ -52,11 +52,8 @@ export const run = async (channel: string, mutation: string, options: RunOptions return resolve(moduleToRun(context)); }); - // Services - if (moduleToRun.name !== 'Gg') { - // Log result - coreLogger.silly(`run:${moduleToRun.name}`, JSON.stringify(result, null, 2)); - } + // Log result + coreLogger.silly(`run:${moduleToRun.name}`, JSON.stringify(result.json, null, 2)); // Save result publish(channel, mutation, result.json);