1
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
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;
         return this.path;
     }
     }
 
 
+    @Override
+    public String toString() {
+        return getClass() + "{" + path + "}";
+    }
 }
 }