mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix: add exc_info=True to image generation error logging
Adds full stack traces to error logs in _upscale_image() and image_generate_tool() for better debugging. Matches the pattern used across the rest of the codebase. Cherry-picked from PR #868 by aydnOktay. Co-authored-by: aydnOktay <aydnOktay@users.noreply.github.com>
This commit is contained in:
parent
91101065bb
commit
41fa4fbaa5
1 changed files with 2 additions and 2 deletions
|
|
@ -209,7 +209,7 @@ def _upscale_image(image_url: str, original_prompt: str) -> Dict[str, Any]:
|
|||
return None
|
||||
|
||||
except Exception as e:
|
||||
logger.error("Error upscaling image: %s", e)
|
||||
logger.error("Error upscaling image: %s", e, exc_info=True)
|
||||
return None
|
||||
|
||||
|
||||
|
|
@ -377,7 +377,7 @@ def image_generate_tool(
|
|||
except Exception as e:
|
||||
generation_time = (datetime.datetime.now() - start_time).total_seconds()
|
||||
error_msg = f"Error generating image: {str(e)}"
|
||||
logger.error("%s", error_msg)
|
||||
logger.error("%s", error_msg, exc_info=True)
|
||||
|
||||
# Prepare error response - minimal format
|
||||
response_data = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue