log missing index at notice priority

This commit is contained in:
Joey Hess 2013-11-13 14:42:59 -04:00
parent 6a45f4cdaf
commit 58b72a30c2

View file

@ -42,7 +42,7 @@ sanityCheckerStartupThread startupdelay = namedThreadUnchecked "SanityCheckerSta
- all, so detect and repair. -} - all, so detect and repair. -}
ifM (not <$> liftAnnex (inRepo (checkIndex S.empty))) ifM (not <$> liftAnnex (inRepo (checkIndex S.empty)))
( do ( do
debug ["corrupt index file found at startup; removing and restaging"] notice ["corrupt index file found at startup; removing and restaging"]
liftAnnex $ inRepo nukeIndex liftAnnex $ inRepo nukeIndex
{- Normally the startup scan avoids re-staging files, {- Normally the startup scan avoids re-staging files,
- but with the index deleted, everything needs to be - but with the index deleted, everything needs to be