Browse Source

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

Helmut Pozimski 7 years ago
parent
commit
e9853e9272
2 changed files with 2 additions and 2 deletions
  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)