Skip to content

Commit 6d90418

Browse files
Add toString to AbstractBlobContainer (#95408)
Just adding a default toString here to help with debugging. We don't really log these objects anywhere at the moment I think but it's immmensely helpful to have the path shown in toString when working with a debugger.
1 parent b51951f commit 6d90418

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/main/java/org/elasticsearch/common/blobstore/support/AbstractBlobContainer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@ public BlobPath path() {
3939
return this.path;
4040
}
4141

42+
@Override
43+
public String toString() {
44+
return getClass() + "{" + path + "}";
45+
}
4246
}

0 commit comments

Comments
 (0)