Commit 008913a7 authored by Torstein Nicolaysen's avatar Torstein Nicolaysen
Browse files

DEICH-5829 make mailchimp log JSON in non-local environments

parent bd0e800b
......@@ -5,7 +5,7 @@ const customCli = require("./winston-custom-cli-format");
const { createLogger, format, transports } = winston;
const createLogFactory = ({ logLevel = "info" } = {}) => {
const developmentMode = process.env.ZONE !== "prod";
const developmentMode = !process.env.ZONE || process.env.ZONE === "local";
const developmentFormat = format.combine(format.timestamp(), customCli({ depth: 2 }));
const productionFormat = format.combine(format.timestamp(), format.json());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment