Преглед изворни кода

after double-force delete, warn about necessary repair, fixes #4704

the borg check --repair is needed to clean up all the orphaned chunks.

if the message is emitted on INFO log level, people likely do not see
it if they use default WARNING log level (they did not give -v).

(cherry picked from commit 389afcae9d40dc0c9160043704807e2d4d91584d)
Thomas Waldmann пре 5 година
родитељ
комит
d4d4b7e4a9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/borg/archiver.py

+ 1 - 1
src/borg/archiver.py

@@ -1124,7 +1124,7 @@ class Archiver:
                 manifest.write()
                 manifest.write()
                 # note: might crash in compact() after committing the repo
                 # note: might crash in compact() after committing the repo
                 repository.commit(compact=False)
                 repository.commit(compact=False)
-                logger.info('Done. Run "borg check --repair" to clean up the mess.')
+                logger.warning('Done. Run "borg check --repair" to clean up the mess.')
             else:
             else:
                 logger.warning('Aborted.')
                 logger.warning('Aborted.')
             return self.exit_code
             return self.exit_code