Add missing log levels

This commit is contained in:
Orsiris de Jong 2024-01-01 22:17:09 +01:00
parent 75b0b84f32
commit ec3d33ca99

View file

@ -810,14 +810,14 @@ class NPBackupRunner:
"T",
):
self.write_logs(
f"Bogus exclude_files_larger_than value given: {exclude_files_larger_than}"
f"Bogus suffix for exclude_files_larger_than value given: {exclude_files_larger_than}", level="warning"
)
exclude_files_larger_than = None
try:
float(exclude_files_larger_than[:-1])
except (ValueError, TypeError):
self.write_logs(
f"Cannot check whether excludes_files_larger_than is a float: {exclude_files_larger_than}"
f"Cannot check whether excludes_files_larger_than is a float: {exclude_files_larger_than}", level="warning"
)
exclude_files_larger_than = None