浏览代码

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.
Armin Braun 2 年之前
父节点
当前提交
6d9041876e

+ 4 - 0
server/src/main/java/org/elasticsearch/common/blobstore/support/AbstractBlobContainer.java

@@ -39,4 +39,8 @@ public abstract class AbstractBlobContainer implements BlobContainer {
         return this.path;
     }
 
+    @Override
+    public String toString() {
+        return getClass() + "{" + path + "}";
+    }
 }