Skip to content

Commit 7f26b8d

Browse files
committed
- Logging tweaks.
- Patch version bump.
1 parent cfe5ae6 commit 7f26b8d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ subprojects {
44
apply(plugin = "io.vacco.oss.gitflow")
55

66
group = "io.vacco.tokoeka"
7-
version = "0.2.5"
7+
version = "0.2.6"
88

99
configure<io.vacco.oss.gitflow.GsPluginProfileExtension> {
1010
sharedLibrary(true, false)

tk-sdr/src/main/java/io/vacco/tokoeka/TkSocket.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ public void send(String message) {
103103
log.trace("< TXT: {} ({} bytes)", message, payload.length);
104104
}
105105
} catch (Exception e) {
106-
throw new IllegalStateException(String.format("unable to send text: %s", message), e);
106+
var msg = message != null && message.length() > 64
107+
? String.format("%s...", message.substring(0, 64))
108+
: message;
109+
throw new IllegalStateException(String.format("unable to send text: %s", msg), e);
107110
}
108111
}
109112

0 commit comments

Comments
 (0)