feat(planning): ship holiday-aware planning and assistant upgrades

This commit is contained in:
2026-03-28 22:49:28 +01:00
parent 2a005794e7
commit 4f48afe7b4
151 changed files with 17738 additions and 1940 deletions
+13 -12
View File
@@ -3,23 +3,24 @@ import pino from "pino";
const isProduction = process.env["NODE_ENV"] === "production";
const LOG_LEVEL = process.env["LOG_LEVEL"] ?? "info";
const devDestination = pino.destination({ dest: 1, sync: true });
export const logger = pino({
level: LOG_LEVEL,
base: { service: "capakraken-api" },
...(isProduction
? {}
: {
transport: {
target: "pino/file",
options: { destination: 1 }, // stdout
},
export const logger = isProduction
? pino({
level: LOG_LEVEL,
base: { service: "capakraken-api" },
})
: pino(
{
level: LOG_LEVEL,
base: { service: "capakraken-api" },
formatters: {
level(label: string) {
return { level: label };
},
},
}),
});
},
devDestination,
);
export type Logger = typeof logger;