From 01821f5da3bd43eaf6596f03cc9d07bef95f3eb8 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Tue, 16 Apr 2024 15:03:57 +0200 Subject: [PATCH] cleaning logs --- CHANGELOG.md | 2 +- pom.xml | 2 +- .../portal/databook/server/DBCassandraAstyanaxImpl.java | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e90b45..080355e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [v2.0.0] - 2023-12-04 +## [v2.0.0-SNAPSHOT] - 2023-12-04 - Support for Cassandra 4.1.3 using DataStax java driver diff --git a/pom.xml b/pom.xml index e671a3b..48cad3a 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ org.gcube.portal social-networking-library - 2.0.0 + 2.0.0-SNAPSHOT gCube Social Networking Library The gCube Social Networking Library is the 'bridge' between your gCube Applications and the social networking facilities. diff --git a/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java b/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java index 3006147..c141b12 100644 --- a/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java +++ b/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java @@ -2318,7 +2318,7 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore { //if there are no settings for this user create an entry and put all of them at true List results = new ArrayList<>(); if(result!=null) results = result.all(); - _log.info("Result set empty? " + results.isEmpty()); + //_log.info("Result set empty? " + results.isEmpty()); if (results.isEmpty()) { _log.info("Userid " + userid + " settings not found, initiating its preferences..."); HashMap toCreate = new HashMap(); @@ -2341,9 +2341,9 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore { _log.info("Notification preferences Found for " + userid + " : " + results.size()) ; for (Row row: results){ String[] channels = row.getString(PREFERENCE).split(","); - _log.info("Row : " + row.getString(PREFERENCE)); + //_log.info("Row : " + row.getString(PREFERENCE)); if (channels != null && channels.length == 1 && channels[0].toString().equals("") ) { //it is empty, preference is set to no notification at all - _log.info("adding CHANNELS NULL: " + getNotificationType(row.getString(TYPE)) + ", " + new NotificationChannelType[0]); + //_log.info("adding CHANNELS NULL: " + getNotificationType(row.getString(TYPE)) + ", " + new NotificationChannelType[0]); toReturn.put(getNotificationType(row.getString(TYPE)), new NotificationChannelType[0]); } else { NotificationChannelType[] toAdd = new NotificationChannelType[channels.length]; @@ -2352,7 +2352,7 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore { toAdd[i] = (getChannelType(channels[i])); } } - _log.info("adding channels not null: " + getNotificationType(row.getString(TYPE)) + ", " + toAdd.toString()); + //_log.info("adding channels not null: " + getNotificationType(row.getString(TYPE)) + ", " + toAdd.toString()); toReturn.put(getNotificationType(row.getString(TYPE)), toAdd); } }