feat(config): Allow config to be edited without rebuild

This commit is contained in:
Taso committed 2021-04-11 09:38:20 -04:00
1 parent 1a3d02f1e3
commit a880ae66ea
9 files changed
+19 -11

No files matched your search

+2 -3
View File
@@ -1,5 +1,5 @@
import winston from 'winston';
import config from '../utils/config';
import { config } from './server';
import path from 'path';
// Needed to manually apply a color to componenent property of log
@@ -13,8 +13,7 @@ const formatLogs = (log: winston.Logform.TransformableInfo): string => {
return `${log.label} [${log.level}]: ${log.message}`;
};
const findLogPath = () =>
`${path.join(GetResourcePath(GetCurrentResourceName()), 'sv_npwd.log')}`;
const findLogPath = () => `${path.join(GetResourcePath(GetCurrentResourceName()), 'sv_npwd.log')}`;
// Initiate the main logger for NPWD
export const mainLogger = winston.createLogger({