Add debug log when reading message from stdin

This commit is contained in:
AsamK 2021-12-05 16:26:18 +01:00
parent cb346fdec4
commit c3a9022bec

View file

@ -104,6 +104,7 @@ public class SendCommand implements JsonRpcLocalCommand {
var messageText = ns.getString("message"); var messageText = ns.getString("message");
if (messageText == null) { if (messageText == null) {
logger.debug("Reading message from stdin...");
try { try {
messageText = IOUtils.readAll(System.in, Charset.defaultCharset()); messageText = IOUtils.readAll(System.in, Charset.defaultCharset());
} catch (IOException e) { } catch (IOException e) {