fix error logging bruh

reee
This commit is contained in:
989onan
2025-05-11 12:07:51 -04:00
parent 82a7e67d7e
commit 9a84cf52b5
19 changed files with 38 additions and 38 deletions
+4 -4
View File
@@ -113,7 +113,7 @@ class AvatarToolkit_OT_CombineMaterials(Operator):
try:
num_combined = self.consolidate_materials(meshes)
except Exception as e:
logger.error(f"Material consolidation failed: {str(e)}")
logger.error(f"Material consolidation failed:", exception=e)
self.report({'ERROR'}, t("Optimization.error.consolidation"))
return {'CANCELLED'}
progress.step("Consolidated materials")
@@ -121,7 +121,7 @@ class AvatarToolkit_OT_CombineMaterials(Operator):
try:
num_cleaned = self.clean_material_slots(meshes)
except Exception as e:
logger.error(f"Material slot cleanup failed: {str(e)}")
logger.error(f"Material slot cleanup failed:", exception=e)
self.report({'ERROR'}, t("Optimization.error.slot_cleanup"))
return {'CANCELLED'}
progress.step("Cleaned material slots")
@@ -129,7 +129,7 @@ class AvatarToolkit_OT_CombineMaterials(Operator):
try:
num_removed = clear_unused_data_blocks()
except Exception as e:
logger.error(f"Data block cleanup failed: {str(e)}")
logger.error(f"Data block cleanup failed:", exception=e)
self.report({'ERROR'}, t("Optimization.error.data_cleanup"))
return {'CANCELLED'}
progress.step("Removed unused data blocks")
@@ -142,7 +142,7 @@ class AvatarToolkit_OT_CombineMaterials(Operator):
return {'FINISHED'}
except Exception as e:
logger.error(f"Failed to combine materials: {str(e)}")
logger.error(f"Failed to combine materials:", exception=e)
self.report({'ERROR'}, t("Optimization.error.combine_materials", error=str(e)))
return {'CANCELLED'}