Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Change JS SDK logs level

Tomas Valenta4a0ef0b3124f
diff --git a/.changeset/young-boxes-think.md b/.changeset/young-boxes-think.md
new file mode 100644
index 000000000..81a3cc7d3
--- /dev/null
+++ b/.changeset/young-boxes-think.md
@@ -0,0 +1,5 @@
+---
+"@e2b/sdk": patch
+---
+
+Change logs level
diff --git a/packages/js-sdk/src/sandbox/sandboxConnection.ts b/packages/js-sdk/src/sandbox/sandboxConnection.ts
index 37f4e1c93..93922d079 100644
--- a/packages/js-sdk/src/sandbox/sandboxConnection.ts
+++ b/packages/js-sdk/src/sandbox/sandboxConnection.ts
@@ -90,7 +90,7 @@ export class SandboxConnection {
warn: console.warn,
error: console.error,
}
- this.logger.info?.(`Sandbox "${this.templateID}" initialized`)
+ this.logger.debug?.(`Sandbox "${this.templateID}" initialized`)
}
private get templateID(): string {
@@ -153,7 +153,7 @@ export class SandboxConnection {
this.rpc.ws?.terminate?.()
// This is the browser WebSocket way of closing connection
this.rpc.ws?.close?.()
- this.logger.info?.('Disconnected from the sandbox')
+ this.logger.debug?.('Disconnected from the sandbox')
}
}