You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by np...@apache.org on 2019/01/24 14:21:15 UTC

[sling-org-apache-sling-models-impl] branch master updated: SLING-8236 restricting toString to debug mode

This is an automated email from the ASF dual-hosted git repository.

npeltier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-impl.git


The following commit(s) were added to refs/heads/master by this push:
     new 66f637b  SLING-8236 restricting toString to debug mode
     new 1586c1f  Merge pull request #12 from npeltier/SLING-8236
66f637b is described below

commit 66f637b1b4bc6ac8a3470517fd4f177c660fca55
Author: Nicolas Peltier <pe...@gmail.com>
AuthorDate: Thu Jan 24 14:54:20 2019 +0100

    SLING-8236 restricting toString to debug mode
---
 src/main/java/org/apache/sling/models/impl/ModelAdapterFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/models/impl/ModelAdapterFactory.java b/src/main/java/org/apache/sling/models/impl/ModelAdapterFactory.java
index 71e3f80..cf60a09 100644
--- a/src/main/java/org/apache/sling/models/impl/ModelAdapterFactory.java
+++ b/src/main/java/org/apache/sling/models/impl/ModelAdapterFactory.java
@@ -224,7 +224,7 @@ public class ModelAdapterFactory implements AdapterFactory, Runnable, ModelFacto
     private void clearDisposalCallbackRegistryQueue() {
         java.lang.ref.Reference<?> ref = queue.poll();
         while (ref != null) {
-            log.debug("calling disposal for {}.", ref.toString());
+            log.debug("calling disposal for {}.", ref);
             Disposable registry = disposalCallbacks.remove(ref);
             registry.onDisposed();
             ref = queue.poll();