瀏覽代碼

acme_updater,acme_tlsa_mail: switch source to destination in logging in the copy_file function (fixes #7)

Helmut Pozimski 7 年之前
父節點
當前提交
e9853e9272
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      acme_tlsa_mail.py
  2. 1 1
      acme_updater.py

+ 1 - 1
acme_tlsa_mail.py

@@ -150,7 +150,7 @@ def copy_file(source, destination, backup=True):
         try:
             shutil.copy(destination, backup_file)
         except IOError:
-            LOGGER.error("Creating of backup file for %s failed!", source)
+            LOGGER.error("Creating of backup file for %s failed!", destination)
             return False
     try:
         shutil.copy(source, destination)

+ 1 - 1
acme_updater.py

@@ -114,7 +114,7 @@ def copy_file(source, destination, backup=True):
         try:
             shutil.copy(destination, backup_file)
         except IOError:
-            LOGGER.error("Creating of backup file for %s failed!", source)
+            LOGGER.error("Creating of backup file for %s failed!", destination)
             return False
     try:
         shutil.copy(source, destination)