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:
parent
c11a1b78c4
commit
0d67701735
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user