Explorar o código

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

Helmut Pozimski %!s(int64=7) %!d(string=hai) anos
pai
achega
e9853e9272
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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:
         try:
             shutil.copy(destination, backup_file)
             shutil.copy(destination, backup_file)
         except IOError:
         except IOError:
-            LOGGER.error("Creating of backup file for %s failed!", source)
+            LOGGER.error("Creating of backup file for %s failed!", destination)
             return False
             return False
     try:
     try:
         shutil.copy(source, destination)
         shutil.copy(source, destination)

+ 1 - 1
acme_updater.py

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