Commit c213421f authored by Oleg Borisenko's avatar Oleg Borisenko
Browse files

Error levels slightly changed to be not confusing

parent 1ca9b293
......@@ -42,7 +42,7 @@ class RestoreHistory(Base):
log.info("Restored successfully %s", restoring.relative_path)
return True
else:
log.warning("Restoration %s failed, status %d", restoring.relative_path, copy_result)
log.error("Restoration %s failed, status %d", restoring.relative_path, copy_result)
return False
Index('restore_history_index', RestoreHistory.status, unique=False)
......@@ -32,9 +32,9 @@ def restore_copy_process(mountpoint, f, dbsession, loop):
f.status = True
f.restored_at_time = datetime.datetime.now()
elif copy_result != 0:
log.warning("File % restore failed", f.file_to_restore.relative_path)
log.error("File % restore failed", f.file_to_restore.relative_path)
else:
log.warning("File % restored; checksum failed", f.file_to_restore.relative_path)
log.error("File % restored; checksum failed", f.file_to_restore.relative_path)
return
......
......@@ -231,7 +231,7 @@ def file_filter(request):
if tape.location == 'Inside tape library':
tapes_inside_list.append(tape.label)
else:
tapes_outside.append("Кассета с номером %s находится в %s и файлы с нее **НЕ БУДУТ** восстановлены" % tape.label, tape.location)
tapes_outside.append("Кассета с номером %s находится в %s и файлы с нее **НЕ БУДУТ** восстановлены" % (tape.label, tape.location))
tapes_inside = ["Кассеты с номерами %s находятся внутри ленточной библиотеки и могут быть использованы для восстановления." \
% " ".join(str(x) for x in tapes_inside_list)]
tapes_status = tapes_inside + tapes_outside
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment