mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-12-23 09:15:34 +00:00
Updated logging.js to read config.app
This commit is contained in:
parent
abf019ccb0
commit
23f2e06b55
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
"app": "discord-bot",
|
||||||
|
|
||||||
"logdnaKey": "",
|
"logdnaKey": "",
|
||||||
"enableLogdnaLogging": false,
|
"enableLogdnaLogging": false,
|
||||||
"enableConsoleLogging": true,
|
"enableConsoleLogging": true,
|
||||||
|
|
|
@ -26,7 +26,7 @@ if (config.enableLogdnaLogging === true && config.logdnaKey) {
|
||||||
key: config.logdnaKey,
|
key: config.logdnaKey,
|
||||||
ip: ip.address(),
|
ip: ip.address(),
|
||||||
hostname: os.hostname(),
|
hostname: os.hostname(),
|
||||||
app: 'services-services'
|
app: config.app
|
||||||
});
|
});
|
||||||
logger.debug('[logging] Started LogDNA winston transport.');
|
logger.debug('[logging] Started LogDNA winston transport.');
|
||||||
} else if (config.enableLogdna === true) {
|
} else if (config.enableLogdna === true) {
|
||||||
|
|
Loading…
Reference in a new issue