Skip to content

Commit 3029162

Browse files
authored
Merge pull request #35870 from vespa-engine/arnej/locale-cloud
Use Text.format in DeploymentLog
2 parents a9ffd70 + 962ba97 commit 3029162

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cloud/hosted-api/src/main/java/ai/vespa/hosted/api/DeploymentLog.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
22
package ai.vespa.hosted.api;
33

4+
import com.yahoo.text.Text;
45
import java.time.Instant;
56
import java.util.List;
67
import java.util.OptionalLong;
@@ -56,7 +57,7 @@ public OptionalLong last() {
5657
public String toString() {
5758
return "status: " + status.name() + ", " + (active ? "active" : "not active") + ", log entries:\n" +
5859
entries.stream()
59-
.map(entry -> String.format("%s %s %s", entry.at(), entry.level(), entry.message()))
60+
.map(entry -> Text.format("%s %s %s", entry.at(), entry.level(), entry.message()))
6061
.collect(Collectors.joining("\n"));
6162
}
6263

0 commit comments

Comments
 (0)