From 35fae3aa2ab837c58e27680c01e6dd72ae9652c6 Mon Sep 17 00:00:00 2001 From: Jordan Ang Date: Fri, 13 Sep 2024 09:42:24 -0700 Subject: [PATCH] Update showView logging --- .../aws/toolkits/eclipse/amazonq/views/AmazonQView.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQView.java b/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQView.java index 5a3f410c..3eac7bde 100644 --- a/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQView.java +++ b/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQView.java @@ -36,7 +36,7 @@ public abstract class AmazonQView extends ViewPart implements ISelectionListener public static void showView(String viewId) { if (!amazonQViews.contains(viewId)) { - PluginLogger.error("Failed to show view. You must add the view (" + viewId + ") to amazonQViews Set"); + PluginLogger.error("Failed to show view. You must add the view " + viewId + " to amazonQViews Set"); return; } @@ -44,10 +44,10 @@ public static void showView(String viewId) { if (page != null) { // Show requested view try { - PluginLogger.info("Attempting to show view" + viewId); page.showView(viewId); + PluginLogger.info("Showing view " + viewId); } catch (Exception e) { - PluginLogger.error("Error occurred while showing view (" + viewId + ")", e); + PluginLogger.error("Error occurred while showing view " + viewId, e); } // Hide all other Amazon Q Views @@ -57,7 +57,7 @@ public static void showView(String viewId) { try { page.hideView(viewRef); } catch (Exception e) { - PluginLogger.error("Error occurred while hiding view (" + viewId + ")", e); + PluginLogger.error("Error occurred while hiding view " + viewId, e); } } }