mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
fix: Use custom logger only for production
This commit is contained in:
parent
33d36d80eb
commit
c40709a509
5 changed files with 26 additions and 27 deletions
21
server/config/env/production.js
vendored
21
server/config/env/production.js
vendored
|
@ -21,6 +21,8 @@
|
|||
|
||||
const url = require('url');
|
||||
|
||||
const { customLogger } = require('../../utils/logger');
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
*
|
||||
|
@ -243,7 +245,24 @@ module.exports = {
|
|||
*
|
||||
*/
|
||||
|
||||
log: {},
|
||||
log: {
|
||||
/**
|
||||
* Passthrough plain log message(s) to
|
||||
* custom Winston console and file logger.
|
||||
*
|
||||
* Note that Winston's log levels override Sails' log levels.
|
||||
* Refer: https://github.com/winstonjs/winston#logging
|
||||
*/
|
||||
|
||||
inspect: false,
|
||||
custom: customLogger,
|
||||
|
||||
/**
|
||||
* Removes the Sail.js init success logs (ASCII ship art).
|
||||
*/
|
||||
|
||||
noShip: true,
|
||||
},
|
||||
|
||||
http: {
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue