Change logging of 'creating backup' to debug level
This commit is contained in:
parent
bf9bd267fd
commit
b3e323462c
|
@ -199,7 +199,7 @@ class AuthManager(component.Component):
|
|||
|
||||
try:
|
||||
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)
|
||||
except IOError as ex:
|
||||
log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex)
|
||||
|
|
|
@ -160,7 +160,7 @@ class Core(component.Component):
|
|||
|
||||
try:
|
||||
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)
|
||||
except IOError as ex:
|
||||
log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex)
|
||||
|
|
|
@ -736,7 +736,7 @@ class TorrentManager(component.Component):
|
|||
|
||||
try:
|
||||
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)
|
||||
except IOError as ex:
|
||||
log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex)
|
||||
|
@ -834,7 +834,7 @@ class TorrentManager(component.Component):
|
|||
|
||||
try:
|
||||
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)
|
||||
except IOError as ex:
|
||||
log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex)
|
||||
|
|
|
@ -193,7 +193,7 @@ def save_pickled_state_file(filename, state):
|
|||
|
||||
try:
|
||||
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)
|
||||
except IOError as ex:
|
||||
log.error("Unable to backup %s to %s: %s", filepath, filepath_bak, ex)
|
||||
|
|
Loading…
Reference in New Issue