From 23f2e06b557356eb0b2bc91a4704ef9a8af049fa Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sun, 6 Aug 2017 21:11:09 -0400 Subject: [PATCH] Updated logging.js to read config.app --- config/default.json | 4 +++- logging.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/default.json b/config/default.json index 1a50662..02905e8 100644 --- a/config/default.json +++ b/config/default.json @@ -1,4 +1,6 @@ { + "app": "discord-bot", + "logdnaKey": "", "enableLogdnaLogging": false, "enableConsoleLogging": true, @@ -8,7 +10,7 @@ "clientLoginToken": null, "pmReply": "Please refer to our **Frequently Asked Questions**. ", - + "quotes": { "faq": { "reply": "Please refer to our **Frequently Asked Questions**. " }, "requirements": { "reply": "Please refer to our **Frequently Asked Questions**. The only requirements for Citra is a GPU that supports at least OpenGL 3.3 and a 64-bit OS, but you definitely want a processor with the highest possible performance per core. "}, diff --git a/logging.js b/logging.js index 1f0b95c..69326ae 100644 --- a/logging.js +++ b/logging.js @@ -26,7 +26,7 @@ if (config.enableLogdnaLogging === true && config.logdnaKey) { key: config.logdnaKey, ip: ip.address(), hostname: os.hostname(), - app: 'services-services' + app: config.app }); logger.debug('[logging] Started LogDNA winston transport.'); } else if (config.enableLogdna === true) {