Skip to content

Commit

Permalink
avoid noisy exception on the karaf console if the pull fails; use log…
Browse files Browse the repository at this point in the history
…ging
  • Loading branch information
jstrachan committed Jun 5, 2013
1 parent 8da0352 commit d3829d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hawtio-git/src/main/java/io/hawt/git/GitFacade.java
Expand Up @@ -104,7 +104,11 @@ public Object call() throws Exception {
task = new TimerTask() {
@Override
public void run() {
gitOperation(getStashPersonIdent(), emptyCallable);
try {
gitOperation(getStashPersonIdent(), emptyCallable);
} catch (Exception e) {
LOG.warn("Failed to pull from remote repo " + e, e);
}
}
};
t.schedule(task, timePeriod, timePeriod);
Expand Down

0 comments on commit d3829d7

Please sign in to comment.