From 798ab931c1311618d151da3d62f5ac60e3f188ab Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 11 Jun 2020 12:37:54 +0200 Subject: [PATCH] changed one level log to debug --- .../caches/LoadingGNPublicLayerIDsInstanceCache.java | 2 +- .../caches/LoadingGeoExplorerApplicationURLCache.java | 2 +- .../resolver/caches/LoadingGeonetworkInstanceCache.java | 2 +- .../resolver/caches/LoadingGisViewerApplicationURLCache.java | 2 +- .../resolver/caches/LoadingMapOfDetachedVRE.java | 5 +---- .../datatransfer/resolver/caches/LoadingMapOfScopeCache.java | 2 +- .../resolver/init/UriResolverSmartGearManagerInit.java | 1 - .../datatransfer/resolver/services/CatalogueResolver.java | 2 +- 8 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGNPublicLayerIDsInstanceCache.java b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGNPublicLayerIDsInstanceCache.java index d2e0e75..79a811a 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGNPublicLayerIDsInstanceCache.java +++ b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGNPublicLayerIDsInstanceCache.java @@ -53,7 +53,7 @@ public class LoadingGNPublicLayerIDsInstanceCache { RemovalListener> removalListener = new RemovalListener>() { public void onRemoval(RemovalNotification> removal) { - logger.info("cache expired"); + logger.debug("cache expired"); } }; diff --git a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGeoExplorerApplicationURLCache.java b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGeoExplorerApplicationURLCache.java index 764945e..3fff14a 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGeoExplorerApplicationURLCache.java +++ b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGeoExplorerApplicationURLCache.java @@ -46,7 +46,7 @@ public class LoadingGeoExplorerApplicationURLCache { RemovalListener removalListener = new RemovalListener() { public void onRemoval(RemovalNotification removal) { - logger.info("cache expired"); + logger.debug("cache expired"); } }; diff --git a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGeonetworkInstanceCache.java b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGeonetworkInstanceCache.java index 01d0d57..d13449d 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGeonetworkInstanceCache.java +++ b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGeonetworkInstanceCache.java @@ -48,7 +48,7 @@ public class LoadingGeonetworkInstanceCache { RemovalListener removalListener = new RemovalListener() { public void onRemoval(RemovalNotification removal) { - logger.info("cache expired"); + logger.debug("cache expired"); } }; diff --git a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGisViewerApplicationURLCache.java b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGisViewerApplicationURLCache.java index 7aa15b9..6e5b134 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGisViewerApplicationURLCache.java +++ b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingGisViewerApplicationURLCache.java @@ -46,7 +46,7 @@ public class LoadingGisViewerApplicationURLCache { RemovalListener removalListener = new RemovalListener() { public void onRemoval(RemovalNotification removal) { - logger.info("cache expired"); + logger.debug("cache expired"); } }; diff --git a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingMapOfDetachedVRE.java b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingMapOfDetachedVRE.java index a5474e5..5c1a1e3 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingMapOfDetachedVRE.java +++ b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingMapOfDetachedVRE.java @@ -4,7 +4,6 @@ package org.gcube.datatransfer.resolver.caches; import java.util.Map; -import java.util.Set; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; @@ -16,8 +15,6 @@ import org.gcube.infrastructure.detachedres.detachedreslibrary.shared.re.Detache import org.gcube.infrastructure.detachedres.detachedreslibrary.shared.re.Gateway; import org.gcube.infrastructure.detachedres.detachedreslibrary.shared.re.VO; import org.gcube.infrastructure.detachedres.detachedreslibrary.shared.re.VRE; -import org.gcube.smartgears.ContextProvider; -import org.gcube.smartgears.context.application.ApplicationContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -65,7 +62,7 @@ public class LoadingMapOfDetachedVRE { @Override public void onRemoval(RemovalNotification arg0) { - LOG.info("cache expired"); + LOG.debug("cache expired"); } }; diff --git a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingMapOfScopeCache.java b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingMapOfScopeCache.java index 853daf9..dde32a6 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingMapOfScopeCache.java +++ b/src/main/java/org/gcube/datatransfer/resolver/caches/LoadingMapOfScopeCache.java @@ -54,7 +54,7 @@ public class LoadingMapOfScopeCache { @Override public void onRemoval(RemovalNotification arg0) { - logger.info("cache expired"); + logger.debug("cache expired"); //prePopulateCache(); } diff --git a/src/main/java/org/gcube/datatransfer/resolver/init/UriResolverSmartGearManagerInit.java b/src/main/java/org/gcube/datatransfer/resolver/init/UriResolverSmartGearManagerInit.java index cc37a89..3d2c751 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/init/UriResolverSmartGearManagerInit.java +++ b/src/main/java/org/gcube/datatransfer/resolver/init/UriResolverSmartGearManagerInit.java @@ -13,7 +13,6 @@ import java.util.Set; import javax.servlet.ServletContext; import javax.servlet.ServletException; -import org.gcube.common.authorization.library.provider.SecurityTokenProvider; import org.gcube.common.scope.api.ScopeProvider; import org.gcube.common.scope.impl.ScopeBean; import org.gcube.common.scope.impl.ScopeBean.Type; diff --git a/src/main/java/org/gcube/datatransfer/resolver/services/CatalogueResolver.java b/src/main/java/org/gcube/datatransfer/resolver/services/CatalogueResolver.java index 5b95422..18d24eb 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/services/CatalogueResolver.java +++ b/src/main/java/org/gcube/datatransfer/resolver/services/CatalogueResolver.java @@ -196,7 +196,7 @@ public class CatalogueResolver { try{ scopeBean = LoadingMapOfScopeCache.get(scopeName); }catch(ExecutionException | InvalidCacheLoadException e){ - logger.error("Error on getting the fullscope from cache for scopeName {}. Tryng to load it from ",scopeName); + logger.error("Error on getting the fullscope from cache for scopeName {}. Tryng to load it from DetachedRE",scopeName); boolean isScopeDetached = false; try {