Fix/production logging (#9658)

Keep the old format (ie combined) when logging in production.

**Development**
![CleanShot 2024-10-18 at 16 51 18@2x](https://github.com/user-attachments/assets/7656422a-0329-4062-ad6a-5bbc4a892b37)

**Production**
![CleanShot 2024-10-18 at 16 52 25@2x](https://github.com/user-attachments/assets/89527547-25e3-432f-b561-2514856b6aec)
This commit is contained in:
Harminder Virk
2024-10-18 18:41:46 +05:30
committed by GitHub
parent 85865c18ff
commit d77d184729
2 changed files with 12 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ import { ulid } from "ulid"
import winston from "winston"
import { panicHandler } from "./panic-handler"
const LOG_LEVEL = process.env.LOG_LEVEL || "info"
const LOG_LEVEL = process.env.LOG_LEVEL || "http"
const LOG_FILE = process.env.LOG_FILE || ""
const NODE_ENV = process.env.NODE_ENV || "development"
const IS_DEV = NODE_ENV.startsWith("dev")