Skip to content

Commit 536f366

Browse files
authored
Fix session create logs on api (#1089)
1 parent b9c8102 commit 536f366

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/purple-squids-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": patch
3+
---
4+
5+
Fixed info logs on api session create

lib/api.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ export class StagehandAPI {
6868
if (region && region !== "us-west-2") {
6969
return { sessionId: browserbaseSessionID ?? null, available: false };
7070
}
71+
this.logger({
72+
category: "init",
73+
message: "creating new browserbase session...",
74+
level: 1,
75+
});
7176
const sessionResponse = await this.request("/sessions/start", {
7277
method: "POST",
7378
body: JSON.stringify({

0 commit comments

Comments
 (0)