This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 3de2677d authored by Michael Breu's avatar Michael Breu
Browse files

improving error output

parent 109b2d55
No related merge requests found
......@@ -1086,7 +1086,16 @@ public class GitlabEventService {
return null;
}
if (tree.get().hasErrors()) {
logger.info("project {} has errors and is not indexed", project.getId());
String errors = tree
.get()
.getErrors()
.entrySet()
.stream()
.map(e -> {
return String.format("%s: %s", e.getKey(), e.getValue().stream().collect(Collectors.joining(", ")));
})
.collect(Collectors.joining("\\n"));
logger.info("project {} has errors and is not indexed: {}", project.getId(), errors);
} else {
if (logger.isDebugEnabled()) {
logger.debug("parsed tree:");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment