mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
Add NO_COLOR standard environment flag to sync-server logging. (#5676)
* Add NO_COLOR standard environment flag to sync-server logging. * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -48,7 +48,9 @@ const validateSessionMiddleware = async (req, res, next) => {
|
||||
const requestLoggerMiddleware = expressWinston.logger({
|
||||
transports: [new winston.transports.Console()],
|
||||
format: winston.format.combine(
|
||||
winston.format.colorize(),
|
||||
...(Object.prototype.hasOwnProperty.call(process.env, 'NO_COLOR')
|
||||
? []
|
||||
: [winston.format.colorize()]),
|
||||
winston.format.timestamp(),
|
||||
winston.format.printf(args => {
|
||||
const { timestamp, level, meta } = args;
|
||||
|
||||
6
upcoming-release-notes/5676.md
Normal file
6
upcoming-release-notes/5676.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Enhancements
|
||||
authors: [michaelsanford]
|
||||
---
|
||||
|
||||
Add NO_COLOR standard environment flag to sync-server logging (https://no-color.org/).
|
||||
Reference in New Issue
Block a user