Skip to content

Commit

Permalink
Less confusing leak warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
trustin committed Jul 17, 2013
1 parent 88cbdb5 commit e53738f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/src/main/java/io/netty/util/ResourceLeakDetector.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ private void reportLeak() {
}

if (reportedLeaks.putIfAbsent(ref.exception, Boolean.TRUE) == null) {
logger.warn("LEAK: " + resourceType + " was GC'd before being released correctly.", ref.exception);
logger.warn(
"LEAK: " + resourceType + " was GC'd before being released correctly. " +
"The following stack trace shows where the leaked object was created, " +
"rather than who failed to release it where.", ref.exception);
}
}
}
Expand Down

0 comments on commit e53738f

Please sign in to comment.