Skip to content

Commit

Permalink
feat: improve exception printing
Browse files Browse the repository at this point in the history
  • Loading branch information
JanPokorny committed Oct 11, 2024
1 parent 7eb1e10 commit eade628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/code_interpreter/services/kubectl.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def _spawn_process(
]
+ list(args[dashdash_position:])
)
logger.info(f"kubectl {shlex.join(all_args)}")
logger.info("kubectl %s", shlex.join(all_args))
return await asyncio.create_subprocess_exec(
"kubectl",
*all_args,
Expand Down
2 changes: 1 addition & 1 deletion src/code_interpreter/services/kubernetes_code_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def fill_executor_pod_queue(self):
self.executor_pod_queue.append(await pod_spawn_task)
spawned_pods += 1
except Exception as e:
logger.error(f"Failed to spawn executor pod: {e}")
logger.error("Failed to spawn executor pod:", e)
finally:
self.executor_pod_queue_spawning_count -= 1
logger.info(
Expand Down

0 comments on commit eade628

Please sign in to comment.