Log exception in default branch delete protection

This commit is contained in:
René Pfeuffer
2024-12-28 17:50:56 +01:00
parent 190961df28
commit e615bc32ad

View File

@@ -70,7 +70,7 @@ public class DefaultBranchDeleteProtection {
try {
return service.getBranchesCommand().setDisableCache(true).getBranches();
} catch (IOException e) {
LOG.warn("Could not read branches in repository {} to check for default branch", service.getRepository());
LOG.warn("Could not read branches in repository {} to check for default branch", service.getRepository(), e);
return new Branches();
}
}