mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 04:33:11 +03:00
Если в конфиге включен, то будет выводится дебаг инфа в консоль
This commit is contained in:
parent
fa18206d51
commit
1b785f5acc
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
|||
const pino = require('pino');
|
||||
const pretty = require('pino-pretty');
|
||||
const config = require('../config/main.js')();
|
||||
|
||||
const logger = pino(pretty());
|
||||
const logger = pino({
|
||||
level: config['server']['debug'] ? 'debug' : 'info',
|
||||
}, pretty());
|
||||
|
||||
module.exports = logger;
|
Loading…
Add table
Reference in a new issue