Changed default CustomCommandHandler

While throwing an IllegalStateException is great to signal developers they need to register a default handler, it's a dangerous default for all those who don't need one. A log entry on 'debug' level should suffice.
This commit is contained in:
Christian Basler 2016-12-12 07:59:38 +01:00
parent c11a1b78c4
commit 0d67701735
1 changed files with 2 additions and 2 deletions

View File

@ -435,8 +435,8 @@ public class BitmessageContext {
customCommandHandler = new CustomCommandHandler() {
@Override
public MessagePayload handle(CustomMessage request) {
throw new IllegalStateException(
"Received custom request, but no custom command handler configured.");
LOG.debug("Received custom request, but no custom command handler configured.");
return null;
}
};
}