Change WIP log statements to debug level

This commit is contained in:
deajan 2025-07-01 17:52:02 +02:00
parent 5df6e2fe5f
commit 22be3a7e53
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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",