Skip to content

Commit

Permalink
feat(api): downgrade metadata parse warnings to debug
Browse files Browse the repository at this point in the history
I set these to warn during testing and neglected to undo the change.
  • Loading branch information
psychedelicious committed May 22, 2024
1 parent 1066741 commit 6924c22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions invokeai/app/api/routers/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,23 @@ async def upload_image(
if isinstance(metadata_raw, str):
_metadata = metadata_raw
else:
ApiDependencies.invoker.services.logger.warn("Failed to parse metadata for uploaded image")
ApiDependencies.invoker.services.logger.debug("Failed to parse metadata for uploaded image")
pass

# attempt to parse workflow from image
workflow_raw = pil_image.info.get("invokeai_workflow", None)
if isinstance(workflow_raw, str):
_workflow = workflow_raw
else:
ApiDependencies.invoker.services.logger.warn("Failed to parse workflow for uploaded image")
ApiDependencies.invoker.services.logger.debug("Failed to parse workflow for uploaded image")
pass

# attempt to extract graph from image
graph_raw = pil_image.info.get("invokeai_graph", None)
if isinstance(graph_raw, str):
_graph = graph_raw
else:
ApiDependencies.invoker.services.logger.warn("Failed to parse graph for uploaded image")
ApiDependencies.invoker.services.logger.debug("Failed to parse graph for uploaded image")
pass

try:
Expand Down

0 comments on commit 6924c22

Please sign in to comment.