summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-08-28 08:53:37 (EDT)
committerStephan Born2013-09-23 05:02:58 (EDT)
commit9d4173a412e009304c2d4e1efe0f4194890ec10d (patch)
tree37b4951a211d4128476131f13f46491a384949f8
parent8f3a6582385ff83bb85e6c61a8319d1cb23432b0 (diff)
downloadorg.eclipse.stardust.ui.web-9d4173a412e009304c2d4e1efe0f4194890ec10d.zip
org.eclipse.stardust.ui.web-9d4173a412e009304c2d4e1efe0f4194890ec10d.tar.gz
org.eclipse.stardust.ui.web-9d4173a412e009304c2d4e1efe0f4194890ec10d.tar.bz2
Jira-ID: CRNT-30281
Changed logging level to debug from info. git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/trunk/stardust/ui.web@66992 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Sidharth Singh <sidharth.singh@sungard.com>
-rw-r--r--portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/PortalApplicationSingleView.java15
-rw-r--r--portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/SingleViewLaunchPanels.java42
2 files changed, 42 insertions, 15 deletions
diff --git a/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/PortalApplicationSingleView.java b/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/PortalApplicationSingleView.java
index ff74b12..5ab76a7 100644
--- a/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/PortalApplicationSingleView.java
+++ b/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/PortalApplicationSingleView.java
@@ -77,7 +77,10 @@ public class PortalApplicationSingleView implements Serializable, InitializingBe
singleViewKey = "";
}
- trace.info("Single View Context = " + singleViewId + ":" + singleViewKey);
+ if (trace.isDebugEnabled())
+ {
+ trace.debug("Single View Context = " + singleViewId + ":" + singleViewKey);
+ }
associateView(singleViewId, singleViewKey);
setBreadcrumb();
@@ -195,7 +198,10 @@ public class PortalApplicationSingleView implements Serializable, InitializingBe
String scripts = singleViewEventScript.getEventScripts(syncLaunchPanels);
scripts = PortalApplicationSingleViewEventScript.wrapIntoRunScript(scripts);
- trace.info("SingleApp_View:getEventScripts():\n" + scripts);
+ if (trace.isDebugEnabled())
+ {
+ trace.debug("SingleApp_View:getEventScripts():\n" + scripts);
+ }
return scripts;
}
@@ -205,7 +211,10 @@ public class PortalApplicationSingleView implements Serializable, InitializingBe
public void activeViewSync(ValueChangeEvent event)
{
syncLaunchPanels = false; // No need to sync LPs, just active view is changed
- trace.info("Active View Synced");
+ if (trace.isDebugEnabled())
+ {
+ trace.debug("Active View Synced");
+ }
}
public View getView()
diff --git a/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/SingleViewLaunchPanels.java b/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/SingleViewLaunchPanels.java
index d05bbd7..8f52d38 100644
--- a/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/SingleViewLaunchPanels.java
+++ b/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/SingleViewLaunchPanels.java
@@ -42,8 +42,10 @@ public class SingleViewLaunchPanels implements InitializingBean
{
scripts = PortalApplicationSingleViewEventScript.wrapIntoRunScript(scripts);
}
-
- trace.info("SingleApp_LaunchPanels:getEventScripts():\n" + scripts);
+ if (trace.isDebugEnabled())
+ {
+ trace.debug("SingleApp_LaunchPanels:getEventScripts():\n" + scripts);
+ }
return scripts;
}
@@ -66,7 +68,10 @@ public class SingleViewLaunchPanels implements InitializingBean
View view = portalApp.getPortalUiController().findView(viewId, viewKey);
View focusView = portalApp.getFocusView();
- trace.info("Before:: Focus View: " + focusView);
+ if (trace.isDebugEnabled())
+ {
+ trace.debug("Before:: Focus View: " + focusView);
+ }
if (focusView != view)
{
portalApp.setFocusView(view);
@@ -81,8 +86,10 @@ public class SingleViewLaunchPanels implements InitializingBean
//SessionRendererHelper.render(sessionId);
}
}
- trace.info("After:: Focus View: " + portalApp.getFocusView());
-
+ if (trace.isDebugEnabled())
+ {
+ trace.debug("After:: Focus View: " + portalApp.getFocusView());
+ }
portalApp.printOpenViews();
}
}
@@ -102,7 +109,10 @@ public class SingleViewLaunchPanels implements InitializingBean
PortalApplication portalApp = PortalApplication.getInstance();
String value = (String)event.getNewValue();
- trace.info("Closing view: " + value);
+ if (trace.isDebugEnabled())
+ {
+ trace.debug("Closing view: " + value);
+ }
if (StringUtils.isNotEmpty(value))
{
@@ -113,10 +123,16 @@ public class SingleViewLaunchPanels implements InitializingBean
View view = portalApp.getPortalUiController().findView(viewId, viewKey);
if (null != view)
{
- trace.info("Trying to Close View: " + view);
- trace.info("Before:: View Count: " + portalApp.getOpenViewsSize());
+ if (trace.isDebugEnabled())
+ {
+ trace.debug("Trying to Close View: " + view);
+ trace.debug("Before:: View Count: " + portalApp.getOpenViewsSize());
+ }
portalApp.closeView(view);
- trace.info("After:: View Count: " + portalApp.getOpenViewsSize());
+ if (trace.isDebugEnabled())
+ {
+ trace.debug("After:: View Count: " + portalApp.getOpenViewsSize());
+ }
// After succesfull view close, sync active view
portalApp.addEventScript("parent.BridgeUtils.View.syncActiveView();");
@@ -127,8 +143,10 @@ public class SingleViewLaunchPanels implements InitializingBean
}
else
{
- trace.info("Could not close view: " + value);
-
+ if (trace.isDebugEnabled())
+ {
+ trace.debug("Could not close view: " + value);
+ }
// Unexpected Situation! View is not open at IPP, but it's open on UI at HTML5 Framework.
// Fire JS for it's closing. It might be internal/native or external view
// TODO: Enhance?
@@ -171,7 +189,7 @@ public class SingleViewLaunchPanels implements InitializingBean
{
PortalApplication.getInstance().addEventScript(value);
}
- trace.info("Launch Panels Synced");
+ trace.debug("Launch Panels Synced");
}
/**