Add logs for debugging

CURA-8610
This commit is contained in:
j.delarago 2022-06-15 14:09:05 +02:00
parent 5d0e4238d5
commit 4e80d170d1
2 changed files with 9 additions and 2 deletions

View file

@ -10,6 +10,7 @@ from UM.Logger import Logger
from UM.Math.Matrix import Matrix
from UM.Application import Application
from UM.Message import Message
from UM.Resources import Resources
from UM.Scene.SceneNode import SceneNode
from cura.CuraApplication import CuraApplication
@ -276,6 +277,8 @@ class ThreeMFWriter(MeshWriter):
if not package_data:
# We failed to find the package for this material
Logger.info(f"Secure resource paths searched for: {Resources.getSecureSearchPaths()}")
message = Message(catalog.i18nc("@error:material",
"It was not possible to store material package information in project file: {material}. This project may not open correctly on other systems.".format(material=extruder.getName())),
title=catalog.i18nc("@info:title", "Failed to save material package information"),