From 98edbbe0ea4a252cd55dd2bc7eba68822fa40c4c Mon Sep 17 00:00:00 2001 From: felmer <franz-josef.elmer@id.ethz.ch> Date: Sun, 19 Mar 2023 14:59:38 +0100 Subject: [PATCH] SSDM-13488: Turn one INFO log into a DEBUG log. Do not show stack trace in WARN log for unknown files --- .../dss/generic/server/fs/FtpPathResolverRegistry.java | 4 ++-- .../openbis/dss/generic/server/ftp/DSSFileSystemView.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server-original-data-store/source/java/ch/systemsx/cisd/openbis/dss/generic/server/fs/FtpPathResolverRegistry.java b/server-original-data-store/source/java/ch/systemsx/cisd/openbis/dss/generic/server/fs/FtpPathResolverRegistry.java index 9c8dbe6642f..0b82c8fa414 100644 --- a/server-original-data-store/source/java/ch/systemsx/cisd/openbis/dss/generic/server/fs/FtpPathResolverRegistry.java +++ b/server-original-data-store/source/java/ch/systemsx/cisd/openbis/dss/generic/server/fs/FtpPathResolverRegistry.java @@ -348,7 +348,7 @@ public class FtpPathResolverRegistry implements IFtpPathResolverRegistry FtpFile response = cache.getResponse(responseCacheKey); if (response != null) { - operationLog.info("Path " + path + " requested (found in cache)."); + operationLog.debug("Path " + path + " requested (found in cache)."); return response; } @@ -374,7 +374,7 @@ public class FtpPathResolverRegistry implements IFtpPathResolverRegistry } } catch (Exception e) { - operationLog.warn("Resolving " + path + " failed", e); + operationLog.warn("Resolving " + path + " failed: " + e); response = resolverContext.getResolverContext().createNonExistingFileResponse("Error when retrieving path"); } return convert(response, resolverContext); diff --git a/server-original-data-store/source/java/ch/systemsx/cisd/openbis/dss/generic/server/ftp/DSSFileSystemView.java b/server-original-data-store/source/java/ch/systemsx/cisd/openbis/dss/generic/server/ftp/DSSFileSystemView.java index b31a40d6cb3..7534e0668e4 100644 --- a/server-original-data-store/source/java/ch/systemsx/cisd/openbis/dss/generic/server/ftp/DSSFileSystemView.java +++ b/server-original-data-store/source/java/ch/systemsx/cisd/openbis/dss/generic/server/ftp/DSSFileSystemView.java @@ -154,7 +154,7 @@ public class DSSFileSystemView implements FileSystemView public FtpFile getFile(String path) throws FtpException { String normalizedPath = normalizePath(path); - operationLog.info("path:>" + path + "<, normalized path:>"+normalizedPath+"<"); + operationLog.debug("path:>" + path + "<, normalized path:>"+normalizedPath+"<"); // this check speeds directory listings in the LFTP console client if (workingDirectory != null && workingDirectory.getAbsolutePath().equals(normalizedPath)) -- GitLab