debug log data

This commit is contained in:
jane 2021-06-04 15:28:39 -04:00
parent cc9e1b86e6
commit 6d4b10ae4b
1 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,12 @@
import * as fs from 'fs';
import Logger, { levels } from './logger.js';
const cfg = JSON.parse(fs.readFileSync('./config.json'));
const log = new Logger("server", cfg.log_level ? levels[cfg.log_level] : levels.INFO);
export default function parse(data) {
log.info(data)
return {
errors: ["not yet implemented"]
}