refinement[TW19491]: Lengthen time to keep activity logs and log errors

Change-Id: Ia7a13b63a29368ebece5f888d233ad57700e5034
Signed-off-by: Branden Phillips <branden.w.phillips@boeing.com>
diff --git a/plugins/org.eclipse.osee.activity/src/org/eclipse/osee/activity/ActivityConstants.java b/plugins/org.eclipse.osee.activity/src/org/eclipse/osee/activity/ActivityConstants.java
index 9da6539..0bba5be 100644
--- a/plugins/org.eclipse.osee.activity/src/org/eclipse/osee/activity/ActivityConstants.java
+++ b/plugins/org.eclipse.osee.activity/src/org/eclipse/osee/activity/ActivityConstants.java
@@ -40,7 +40,7 @@
 
    public static long DEFAULT_ACTIVITY_LOGGER__WRITE_RATE_IN_MILLIS = 3000L;
    public static int DEFAULT_ACTIVITY_LOGGER__STACKTRACE_LINE_COUNT = 5;
-   public static int DEFAULT_ACTIVITY_LOGGER__CLEANER_KEEP_DAYS = 30;
+   public static int DEFAULT_ACTIVITY_LOGGER__CLEANER_KEEP_DAYS = 365;
    public static boolean DEFAULT_ACTIVITY_LOGGER__ENABLED = true;
 
    public static final String HTTP_HEADER__ACTIVITY_ENTRY_ID = "X-osee-activity-log-entryId";
diff --git a/plugins/org.eclipse.osee.framework.server.ide/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.framework.server.ide/META-INF/MANIFEST.MF
index 4bff764..7a3f996 100644
--- a/plugins/org.eclipse.osee.framework.server.ide/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.framework.server.ide/META-INF/MANIFEST.MF
@@ -18,6 +18,7 @@
  org.eclipse.osee.framework.core.util,
  org.eclipse.osee.framework.jdk.core.type,
  org.eclipse.osee.framework.jdk.core.util,
+ org.eclipse.osee.framework.logging,
  org.eclipse.osee.framework.server.ide.api,
  org.eclipse.osee.framework.server.ide.api.client,
  org.eclipse.osee.framework.server.ide.api.client.model,
diff --git a/plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/internal/SessionEndpointImpl.java b/plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/internal/SessionEndpointImpl.java
index 3baf265..d1f5ed3 100644
--- a/plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/internal/SessionEndpointImpl.java
+++ b/plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/internal/SessionEndpointImpl.java
@@ -16,6 +16,7 @@
 import java.util.Date;
 import java.util.LinkedList;
 import java.util.List;
+import java.util.logging.Level;
 import javax.ws.rs.core.Context;
 import javax.ws.rs.core.UriInfo;
 import org.eclipse.osee.activity.api.ActivityLog;
@@ -25,6 +26,8 @@
 import org.eclipse.osee.framework.core.server.IAuthenticationManager;
 import org.eclipse.osee.framework.core.server.ISession;
 import org.eclipse.osee.framework.core.server.ISessionManager;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.logging.OseeLog;
 import org.eclipse.osee.framework.server.ide.api.SessionEndpoint;
 
 /**
@@ -87,7 +90,8 @@
                credential.getClientPort(), credential.getUserName(), oseeSessionGrant.getUserToken().getUserId(),
                oseeSessionGrant.getSessionId()));
       } catch (Exception ex) {
-         // do nothing
+         OseeLog.logf(SessionEndpointImpl.class, Level.SEVERE, "Exception in logSessionCreated %s",
+            Lib.exceptionToString(ex));
       }
    }
 
@@ -105,7 +109,8 @@
                + "}", //
                sessionId, duration, userId));
       } catch (Exception ex) {
-         // do nothing
+         OseeLog.logf(SessionEndpointImpl.class, Level.SEVERE, "Exception in logSessionReleased %s",
+            Lib.exceptionToString(ex));
       }
    }