Merge pull request #21289 from llamafilm/20052-loglevel

Fixes #20052: improve logging for faulty scripts
This commit is contained in:
bctiemann
2026-01-27 10:10:17 -05:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ class ScriptModule(PythonModuleMixin, JobsMixin, ManagedFile):
module = self.get_module() module = self.get_module()
except Exception as e: except Exception as e:
self.error = e self.error = e
logger.debug(f"Failed to load script: {self.python_name} error: {e}") logger.error(f"Failed to load script: {self.python_name} error: {e}")
module = None module = None
scripts = {} scripts = {}
@@ -121,6 +121,7 @@
<div class="alert alert-warning" role="alert"> <div class="alert alert-warning" role="alert">
<i class="mdi mdi-alert"></i> <i class="mdi mdi-alert"></i>
{% blocktrans with module=module.name %}Could not load scripts from module {{ module }}{% endblocktrans %} {% blocktrans with module=module.name %}Could not load scripts from module {{ module }}{% endblocktrans %}
{% if module.error %}<code>{{ module.error }}</code>{% endif %}
</div> </div>
</div> </div>
{% endif %} {% endif %}