Skip to content

Commit

Permalink
log warning, not stacktrace if there are dupe engines with the same s…
Browse files Browse the repository at this point in the history
…ync url. it is a valid (although unlikely) scenario.
  • Loading branch information
chenson42 committed Oct 29, 2012
1 parent cae7481 commit 3b1e50d
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -828,9 +828,8 @@ private void registerHandleToEngine() {
registeredEnginesByUrl.put(url, this);
}
} else {
throw new EngineAlreadyRegisteredException(
"Could not register engine. There was already an engine registered under the url: "
+ getSyncUrl());
log.warn("Could not register engine. There was already an engine registered under the url: {}",
getSyncUrl());
}

alreadyRegister = registeredEnginesByName.get(getEngineName());
Expand Down

0 comments on commit 3b1e50d

Please sign in to comment.