We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53c0162 commit f3c0c19Copy full SHA for f3c0c19
openhands-sdk/openhands/sdk/llm/utils/telemetry.py
@@ -217,10 +217,8 @@ def log_llm_call(
217
if not self.log_dir:
218
return
219
try:
220
- # Only log if directory exists and is writable.
221
- # Do not create directories implicitly.
222
- if not os.path.isdir(self.log_dir):
223
- raise FileNotFoundError(f"log_dir does not exist: {self.log_dir}")
+ # Create log directory if it doesn't exist
+ os.makedirs(self.log_dir, exist_ok=True)
224
if not os.access(self.log_dir, os.W_OK):
225
raise PermissionError(f"log_dir is not writable: {self.log_dir}")
226
0 commit comments