Change logging of 'creating backup' to debug level

This commit is contained in:
Calum Lind 2014-07-16 21:25:05 +01:00
parent bf9bd267fd
commit b3e323462c
4 changed files with 5 additions and 5 deletions

View File

@ -199,7 +199,7 @@ class AuthManager(component.Component):
try: try:
if os.path.isfile(filepath): if os.path.isfile(filepath):
log.info("Creating backup of %s at: %s", filename, filepath_bak) log.debug("Creating backup of %s at: %s", filename, filepath_bak)
shutil.copy2(filepath, filepath_bak) shutil.copy2(filepath, filepath_bak)
except IOError as ex: except IOError as ex:
log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex) log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex)

View File

@ -160,7 +160,7 @@ class Core(component.Component):
try: try:
if os.path.isfile(filepath): if os.path.isfile(filepath):
log.info("Creating backup of %s at: %s", filename, filepath_bak) log.debug("Creating backup of %s at: %s", filename, filepath_bak)
shutil.copy2(filepath, filepath_bak) shutil.copy2(filepath, filepath_bak)
except IOError as ex: except IOError as ex:
log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex) log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex)

View File

@ -736,7 +736,7 @@ class TorrentManager(component.Component):
try: try:
if os.path.isfile(filepath): if os.path.isfile(filepath):
log.info("Creating backup of %s at: %s", filename, filepath_bak) log.debug("Creating backup of %s at: %s", filename, filepath_bak)
shutil.copy2(filepath, filepath_bak) shutil.copy2(filepath, filepath_bak)
except IOError as ex: except IOError as ex:
log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex) log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex)
@ -834,7 +834,7 @@ class TorrentManager(component.Component):
try: try:
if os.path.isfile(filepath): if os.path.isfile(filepath):
log.info("Creating backup of %s at: %s", filename, filepath_bak) log.debug("Creating backup of %s at: %s", filename, filepath_bak)
shutil.copy2(filepath, filepath_bak) shutil.copy2(filepath, filepath_bak)
except IOError as ex: except IOError as ex:
log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex) log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex)

View File

@ -193,7 +193,7 @@ def save_pickled_state_file(filename, state):
try: try:
if os.path.isfile(filepath): if os.path.isfile(filepath):
log.info("Creating backup of %s at: %s", filename, filepath_bak) log.debug("Creating backup of %s at: %s", filename, filepath_bak)
shutil.copy2(filepath, filepath_bak) shutil.copy2(filepath, filepath_bak)
except IOError as ex: except IOError as ex:
log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex) log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex)