src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py

branch
server
changeset 10770
8b4ff92221da
parent 10636
24d9e6ff8111
child 10949
2057b1b198a5
diff -r 33edb81a63b4 -r 8b4ff92221da src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py
--- 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"
+        )

eric ide

mercurial