From a11567dcf65822e395dd6b45b7024944aadb85c6 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Wed, 1 May 2019 21:17:55 +0200 Subject: [PATCH] Moved log message for when we move an item to below the Already exists skipping message. If the file already exists we dont print Moving message when its acctually not going to be moved. --- transatlanticTorrentExpress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transatlanticTorrentExpress.py b/transatlanticTorrentExpress.py index 1b1bb36..2c1c528 100755 --- a/transatlanticTorrentExpress.py +++ b/transatlanticTorrentExpress.py @@ -32,10 +32,10 @@ def transferFiles(files, localPath, remotePath, host=None, user=None): transferedFiles = [] for file in files: - logger.info('Moving file: {}'.format(file), es={'file': file}) if file in getFiles(remotePath, host, user): logger.info('File already exists at remote path. Skipping.') continue + logger.info('Moving file: {}'.format(file), es={'filename': file}) file = os.path.join(localPath, file)