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

View File

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