This commit is contained in:
Łukasz Magiera 2021-04-02 12:37:20 +02:00
parent 411f561db6
commit b68eed906a

View File

@ -101,9 +101,8 @@ func ReadBackup(r io.Reader, cb func(key datastore.Key, value []byte, log bool)
if os.Getenv("LOTUS_ALLOW_TRUNCATED_LOG") == "1" { if os.Getenv("LOTUS_ALLOW_TRUNCATED_LOG") == "1" {
log.Errorw("log entry potentially truncated") log.Errorw("log entry potentially truncated")
return false, nil return false, nil
} else {
return false, xerrors.Errorf("log entry potentially truncated, set LOTUS_ALLOW_TRUNCATED_LOG=1 to proceed: %w", err)
} }
return false, xerrors.Errorf("log entry potentially truncated, set LOTUS_ALLOW_TRUNCATED_LOG=1 to proceed: %w", err)
default: default:
return false, xerrors.Errorf("unmarshaling log entry: %w", err) return false, xerrors.Errorf("unmarshaling log entry: %w", err)
} }