private void logYamlToStandardOut(@NotNull WireIn in) { if (YamlLogging.showServerReads) { try { LOG.info("\nServer Receives:\n" + Wires.fromSizePrefixedBlobs(in.bytes())); } catch (Exception e) { LOG.info("\n\n" + Bytes.toString(in.bytes())); } } }
private void logToBuffer(@NotNull WireIn in, StringBuilder logBuffer) { if (YamlLogging.showServerReads) { logBuffer.setLength(0); try { logBuffer.append("\nServer Receives:\n" + Wires.fromSizePrefixedBlobs(in.bytes())); } catch (Exception e) { logBuffer.append("\n\n" + Bytes.toString(in.bytes())); } } }