From 026c4062ce2eed824d9c8220cd5ba6b5a5789ee5 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 24 Sep 2021 14:08:55 +0200 Subject: [PATCH] Add logging for when the user encounters errors in setting values We want to be able to see this from the log file, to help debug issues. Done to help with cases like #10475. --- plugins/CuraEngineBackend/CuraEngineBackend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py index 74f564c825..8636c465c0 100755 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -428,6 +428,7 @@ class CuraEngineBackend(QObject, Backend): "Unable to slice with the current settings. The following settings have errors: {0}").format(", ".join(error_labels)), title = catalog.i18nc("@info:title", "Unable to slice"), message_type = Message.MessageType.WARNING) + Logger.warning(f"Unable to slice with the current settings. The following settings have errors: {', '.join(error_labels)}") self._error_message.show() self.setState(BackendState.Error) self.backendError.emit(job) @@ -454,6 +455,7 @@ class CuraEngineBackend(QObject, Backend): "Unable to slice due to some per-model settings. The following settings have errors on one or more models: {error_labels}").format(error_labels = ", ".join(errors.values())), title = catalog.i18nc("@info:title", "Unable to slice"), message_type = Message.MessageType.WARNING) + Logger.warning(f"Unable to slice due to per-object settings. The following settings have errors on one or more models: {', '.join(errors.values())}") self._error_message.show() self.setState(BackendState.Error) self.backendError.emit(job)