Skip to content

Commit 80bb82a

Browse files
committed
fix bug on logger.warning
1 parent 607c6a5 commit 80bb82a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stagehand/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async def _execute(self, method: str, payload: dict[str, Any]) -> Any:
157157
# Log any other message types
158158
self.logger.debug(f"[UNKNOWN] Message type: {msg_type}")
159159
except json.JSONDecodeError:
160-
self.logger.warning(f"Could not parse line as JSON: {line}")
160+
self.logger.error(f"Could not parse line as JSON: {line}")
161161

162162
# Return the final result
163163
return result

stagehand/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def __init__(
144144
)
145145
if not self.model_api_key:
146146
# Model API key needed if Stagehand server creates the session
147-
self.logger.warning(
147+
self.logger.info(
148148
"model_api_key is recommended when creating a new BROWSERBASE session to configure the Stagehand server's LLM."
149149
)
150150
elif self.session_id:

0 commit comments

Comments
 (0)