Skip to content
Snippets Groups Projects
Commit 44b4c121 authored by Bert Palm's avatar Bert Palm :bug:
Browse files

minor logging change

parent 71d28493
No related branches found
No related tags found
1 merge request!148sftp sync script
......@@ -264,6 +264,8 @@ def sync(src: RemoteFS, trg: RemoteFS):
for path in src.files:
logger.info(f"SYNCING: {path}")
# dirs
if src.is_dir(path):
if not trg.exist(path):
......@@ -279,8 +281,6 @@ def sync(src: RemoteFS, trg: RemoteFS):
trg.update(src, path)
continue
logger.info(f"--OK-- {path}")
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment