Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Exclude short sandboxID from json logs

Tomas Valenta469c567fc883
diff --git a/packages/cli/src/commands/sandbox/logs.ts b/packages/cli/src/commands/sandbox/logs.ts
index 33f679dad..a734da816 100644
--- a/packages/cli/src/commands/sandbox/logs.ts
+++ b/packages/cli/src/commands/sandbox/logs.ts
@@ -240,6 +240,7 @@ function printLog(timestamp: string, line: string, allowedLevel: LogLevel | unde
delete log['source']
delete log['service']
delete log['envID']
+ delete log['sandboxID']
log.logger = cleanLogger(log.logger)
@@ -251,7 +252,6 @@ function printLog(timestamp: string, line: string, allowedLevel: LogLevel | unde
}))
} else {
const time = `[${new Date(timestamp).toISOString().replace(/T/, ' ').replace(/\..+/, '')}]`
- delete log['sandboxID']
delete log['level']
console.log(`${asTimestamp(time)} ${level} ` + util.inspect(log, { colors: true, depth: null, maxArrayLength: Infinity, sorted: true, compact: true, breakLength: Infinity }))
}