Skip to content

Commit

Permalink
Fix for #587: log DGM not found to Groovy Event Console, not Error Log
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Aug 15, 2018
1 parent dd50bbe commit 8acbc64
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,11 @@ public Set<Class> getDefaultCategories() {
} catch (Exception e) {
defaultCategories = Collections.EMPTY_SET;
defaultStaticCategories = Collections.EMPTY_SET;
Util.log(e, "Failed to find Default Groovy Methods with " + this);

if (GroovyLogManager.manager.hasLoggers()) {
GroovyLogManager.manager.log(TraceCategory.CLASSPATH,
"Failed to find Default Groovy Methods with " + this + "\n\t" + e.getMessage());
}
}
}
}
Expand Down

0 comments on commit 8acbc64

Please sign in to comment.