Skip to content

Commit 042256a

Browse files
committed
Fix a typo
containsKey -> containsValue
1 parent 57ac1b8 commit 042256a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/fluentd/logger/FluentLoggerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public FluentLogger getLogger(String tagPrefix, String host, int port, int timeo
8787
return getLogger(tagPrefix, host, port, timeout, bufferCapacity);
8888
}
8989
String key = String.format("%s_%s_%d_%d_%d_%s", new Object[] { tagPrefix, host, port, timeout, bufferCapacity, sender == null ? "null" : sender .getName() });
90-
if (loggers.containsKey(key)) {
90+
if (loggers.containsValue(key)) {
9191
for (Map.Entry<FluentLogger, String> entry : loggers.entrySet()) {
9292
if (entry.getValue().equals(key)) {
9393
FluentLogger found = entry.getKey();

0 commit comments

Comments
 (0)