forked from snxraven/p2ns
Log updates
This commit is contained in:
@@ -16,6 +16,7 @@ const LEVEL_NAMES = ['DEBUG', 'INFO', 'WARN', 'ERROR'];
|
||||
const LOG_CHANNELS = {
|
||||
core: { file: 'core.log', label: 'Core', console: true },
|
||||
proxy: { file: 'proxy.log', label: 'Internal Proxy', console: false },
|
||||
httpProxy: { file: 'http-proxy.log', label: 'HTTP Proxy', console: false },
|
||||
dns: { file: 'dns.log', label: 'DNS', console: false },
|
||||
plugins: { file: 'plugins.log', label: 'Plugins', console: false },
|
||||
holesail: { file: 'holesail.log', label: 'Holesail', console: false }
|
||||
@@ -40,6 +41,7 @@ function getLogDir() {
|
||||
function resolveChannel(prefix) {
|
||||
if (!prefix) return 'core';
|
||||
if (prefix === 'Internal Proxy') return 'proxy';
|
||||
if (prefix === 'HTTP Proxy') return 'httpProxy';
|
||||
if (prefix === 'DNS') return 'dns';
|
||||
if (prefix === 'Holesail' || prefix.startsWith('Holesail')) return 'holesail';
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user