Skip to content

Commit bcee2c6

Browse files
committed
fix(webapp): stop pinning metadata logs to debug
1 parent 8f66af6 commit bcee2c6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

apps/webapp/app/env.server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,9 @@ const EnvironmentSchema = z
908908
BATCH_METADATA_OPERATIONS_FLUSH_INTERVAL_MS: z.coerce.number().int().default(1000),
909909
BATCH_METADATA_OPERATIONS_FLUSH_ENABLED: z.string().default("1"),
910910
BATCH_METADATA_OPERATIONS_FLUSH_LOGGING_ENABLED: z.string().default("1"),
911+
BATCH_METADATA_OPERATIONS_LOG_LEVEL: z
912+
.enum(["log", "error", "warn", "info", "debug"])
913+
.default("info"),
911914

912915
// Run Engine 2.0
913916
RUN_ENGINE_WORKER_COUNT: z.coerce.number().int().default(4),

apps/webapp/app/services/metadata/updateMetadataInstance.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const updateMetadataService = singleton(
1515
flushEnabled: env.BATCH_METADATA_OPERATIONS_FLUSH_ENABLED === "1",
1616
flushLoggingEnabled: env.BATCH_METADATA_OPERATIONS_FLUSH_LOGGING_ENABLED === "1",
1717
maximumSize: env.TASK_RUN_METADATA_MAXIMUM_SIZE,
18-
logLevel: env.BATCH_METADATA_OPERATIONS_FLUSH_LOGGING_ENABLED === "1" ? "debug" : "info",
18+
logLevel: env.BATCH_METADATA_OPERATIONS_LOG_LEVEL,
1919
// Buffered (parent/root) operations land via the flusher, not the caller's request —
2020
// publish here so those changes wake live feeds too (no-op when the backend is off).
2121
onRunFlushed: (run) => {

0 commit comments

Comments
 (0)