Small cleanup

This commit is contained in:
Christopher Schnick 2022-11-20 22:10:08 +01:00
parent 07be7eb7d6
commit 9d0da32e4f
2 changed files with 11 additions and 9 deletions

View file

@ -1,6 +1,5 @@
package io.xpipe.core.store;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
@ -33,7 +32,4 @@ public interface ProcessControl extends AutoCloseable {
InputStream getStderr();
Charset getCharset();
BufferedReader getStdoutReader();
BufferedReader getStderrReader();
}

View file

@ -18,8 +18,10 @@ public class TrackEvent {
private String type;
private String message;
private String category;
@Singular
private Map<String, Object> tags;
@Singular
private List<String> elements;
@ -97,15 +99,19 @@ public class TrackEvent {
@Override
public String toString() {
var s = message;
var s = new StringBuilder(message);
if (tags.size() > 0) {
s += " {\n";
s.append(" {\n");
for (var e : tags.entrySet()) {
s += " " + e.getKey() + "=" + e.getValue() + "\n";
s.append(" ")
.append(e.getKey())
.append("=")
.append(e.getValue())
.append("\n");
}
s += "}";
s.append("}");
}
return s;
return s.toString();
}
public static class TrackEventBuilder {