diff --git a/src/main/java/org/gcube/portlets/user/notifications/server/NotificationsServiceImpl.java b/src/main/java/org/gcube/portlets/user/notifications/server/NotificationsServiceImpl.java index 45e58a9..65843ee 100644 --- a/src/main/java/org/gcube/portlets/user/notifications/server/NotificationsServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/notifications/server/NotificationsServiceImpl.java @@ -75,7 +75,7 @@ public class NotificationsServiceImpl extends RemoteServiceServlet implements No String user = (String) this.getThreadLocalRequest().getSession().getAttribute(ScopeHelper.USERNAME_ATTRIBUTE); if (user == null) { user = "test.user"; - user = "massimiliano.assante"; + //user = "massimiliano.assante"; _log.warn("USER IS NULL setting "+user+" and Running OUTSIDE PORTAL"); withinPortal = false; @@ -121,7 +121,7 @@ public class NotificationsServiceImpl extends RemoteServiceServlet implements No public HashMap> getUserNotifications() { HashMap> toReturn = new HashMap>(); try { - for (Notification notification : store.getAllNotificationByUser(getASLSession().getUsername(), 60)) { + for (Notification notification : store.getAllNotificationByUser(getASLSession().getUsername(), 70)) { Date dateWithoutTime = removeTimePart(notification.getTime()); if (! toReturn.containsKey(dateWithoutTime)) { ArrayList nots = new ArrayList(); @@ -130,7 +130,7 @@ public class NotificationsServiceImpl extends RemoteServiceServlet implements No } else { toReturn.get(dateWithoutTime).add(notification); } - System.out.println(notification.getDescription()); + //System.out.println(notification.getDescription()); } } catch (Exception e) { _log.error("While trying to get User notifications"); diff --git a/src/main/resources/clientlog4j.properties b/src/main/resources/clientlog4j.properties new file mode 100644 index 0000000..b98f952 --- /dev/null +++ b/src/main/resources/clientlog4j.properties @@ -0,0 +1,9 @@ +log4j.rootLogger=DEBUG, A1 +log4j.appender.A1=org.apache.log4j.ConsoleAppender +log4j.appender.A1.layout=org.apache.log4j.PatternLayout + +# Print the date in ISO 8601 format +log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n + +# Print only messages of level TRACE or above in the package org.gcube +log4j.logger.org.gcube=TRACE \ No newline at end of file