mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-05 20:44:51 +08:00
Change WIP log statements to debug level
This commit is contained in:
parent
5df6e2fe5f
commit
22be3a7e53
2 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ def get_restic_internal_binary(arch: str) -> str:
|
||||||
else:
|
else:
|
||||||
binary = "restic_*_linux_386"
|
binary = "restic_*_linux_386"
|
||||||
else:
|
else:
|
||||||
logger.info("Internal binary directory not set")
|
logger.debug("Internal binary directory not set")
|
||||||
return None
|
return None
|
||||||
if binary:
|
if binary:
|
||||||
guessed_path = glob.glob(os.path.join(RESTIC_SOURCE_FILES_DIR, binary))
|
guessed_path = glob.glob(os.path.join(RESTIC_SOURCE_FILES_DIR, binary))
|
||||||
|
@ -67,7 +67,7 @@ def get_restic_internal_binary(arch: str) -> str:
|
||||||
# Take glob results reversed so we get newer version
|
# Take glob results reversed so we get newer version
|
||||||
# Does not always compute, but is g00denough(TM) for our dev
|
# Does not always compute, but is g00denough(TM) for our dev
|
||||||
return guessed_path[-1]
|
return guessed_path[-1]
|
||||||
logger.info(
|
logger.debug(
|
||||||
f"Could not find internal restic binary, guess {os.path.join(RESTIC_SOURCE_FILES_DIR, binary)} in {guessed_path}"
|
f"Could not find internal restic binary, guess {os.path.join(RESTIC_SOURCE_FILES_DIR, binary)} in {guessed_path}"
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
|
|
@ -546,7 +546,7 @@ class ResticRunner:
|
||||||
if os.path.isfile(probed_path):
|
if os.path.isfile(probed_path):
|
||||||
self._binary = probed_path
|
self._binary = probed_path
|
||||||
return
|
return
|
||||||
self.write_logs(f"Could not find restic binary in {probe_paths}", level="info")
|
self.write_logs(f"Could not find restic binary in {probe_paths}", level="debug")
|
||||||
self.write_logs(
|
self.write_logs(
|
||||||
"No backup engine binary found. Please install latest binary from restic.net",
|
"No backup engine binary found. Please install latest binary from restic.net",
|
||||||
level="error",
|
level="error",
|
||||||
|
|
Loading…
Add table
Reference in a new issue