diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2019-02-18 11:21:38 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2019-02-18 11:21:38 +0900 |
commit | 9d02e524067376c5ea352dc3034c0c21a0f4ffbb (patch) | |
tree | 96b6a81f346722d664f02e2fbe61ed48a9eed5cb /org.eclipse.jgit | |
parent | 23affa6c7705c6f42acd903a05c6ce28b7270546 (diff) | |
parent | 90876890bc28f0baad5b12b8aa2f189a6738e1c3 (diff) | |
download | jgit-9d02e524067376c5ea352dc3034c0c21a0f4ffbb.tar.gz jgit-9d02e524067376c5ea352dc3034c0c21a0f4ffbb.zip |
Merge branch 'stable-5.2' into stable-5.3
* stable-5.2:
ObjectDirectory: extra logging on packfile exceptions
Change-Id: I4bbeb1d28ab042e3c6c74f7284f5d882ed034305
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java index 9b4323efe1..ad5afbf68e 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java @@ -359,6 +359,7 @@ public class ObjectDirectory extends FileObjectDatabase { // The hasObject call should have only touched the index, // so any failure here indicates the index is unreadable // by this process, and the pack is likewise not readable. + LOG.warn("Unable to read packfile " + p.getPackFile(), e); removePack(p); } } @@ -651,6 +652,7 @@ public class ObjectDirectory extends FileObjectDatabase { if ((e instanceof CorruptObjectException) || (e instanceof PackInvalidException)) { warnTmpl = JGitText.get().corruptPack; + LOG.warn("Packfile " + p.getPackFile() + " is corrupted", e); // Assume the pack is corrupted, and remove it from the list. removePack(p); } else if (e instanceof FileNotFoundException) { |