Implementing new session payload string representation for logs
@@ -501,4 +501,15 @@ public void close() throws IOException {
}
return toReturn;
}
+
+ @Override
+ public String toString() {
+ StringBuilder res = new StringBuilder();
+ try {
+ writeTo(res);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ return res.toString();
+ }
}
