diff --git a/apps/open-swe/src/utils/logger.ts b/apps/open-swe/src/utils/logger.ts index 25a2a6a3..995c2d85 100644 --- a/apps/open-swe/src/utils/logger.ts +++ b/apps/open-swe/src/utils/logger.ts @@ -74,7 +74,12 @@ function logWithOptionalIds(styledPrefix: string, message: string, data?: any) { export function createLogger(level: LogLevel, prefix: string) { const hash = simpleHash(prefix); const color = COLORS[hash % COLORS.length]; - const styledPrefix = `${BOLD}${color}[${prefix}]${RESET}`; // Apply bold and color + + // Use plain prefix in production, styled prefix otherwise + const styledPrefix = + process.env.NODE_ENV === "production" + ? `[${prefix}]` + : `${BOLD}${color}[${prefix}]${RESET}`; return { debug: (message: string, data?: any) => {