Skip to content

Commit

Permalink
Merge pull request #18229 from mvdbeek/decrease_visualization_log_level
Browse files Browse the repository at this point in the history
[24.0] Decrease log level for expected visualization errors
  • Loading branch information
jmchilton authored May 27, 2024
2 parents 62b53c5 + ed70432 commit 82a54a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/galaxy/webapps/galaxy/controllers/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
model,
web,
)
from galaxy.exceptions import MessageException
from galaxy.managers.hdas import HDAManager
from galaxy.managers.sharable import SlugBuilder
from galaxy.model.base import transaction
Expand Down Expand Up @@ -258,7 +259,10 @@ def _handle_plugin_error(self, trans, visualization_name, exception):
"""
Log, raise if debugging; log and show html message if not.
"""
log.exception("error rendering visualization (%s)", visualization_name)
if isinstance(exception, MessageException):
log.debug("error rendering visualization (%s): %s", visualization_name, exception)
else:
log.exception("error rendering visualization (%s)", visualization_name)
if trans.debug:
raise exception
return trans.show_error_message(
Expand Down

0 comments on commit 82a54a5

Please sign in to comment.