--- a/src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py Mon Jun 10 16:28:21 2024 +0200 +++ b/src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py Mon Jun 10 16:34:28 2024 +0200 @@ -9,6 +9,7 @@ import base64 import contextlib +import logging import os import re import stat @@ -1409,7 +1410,9 @@ _RemoteFsCache[FileSystemUtilities.remoteFileName(entry["path"])] = ( entry ) - print(f"Remote Cache Size: {len(_RemoteFsCache)} entries") + logging.getLogger(__name__).debug( + f"Remote Cache Size: {len(_RemoteFsCache)} entries" + ) except OSError as err: print("Error in 'populateFsCache()':", str(err)) # noqa: M801 @@ -1423,4 +1426,6 @@ for entryPath in list(_RemoteFsCache.keys()): if entryPath.startswith(directory): del _RemoteFsCache[entryPath] - print(f"Remote Cache Size: {len(_RemoteFsCache)} entries") + logging.getLogger(__name__).debug( + f"Remote Cache Size: {len(_RemoteFsCache)} entries" + )