Skip to content

Commit 57ac1b8

Browse files
committed
Fix wrongly rebased lines
1 parent 9d5267a commit 57ac1b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class FluentLoggerFactory {
3434
private final Map<FluentLogger, String> loggers;
3535

3636
public FluentLoggerFactory() {
37-
loggers = Collections.synchronizedMap(new WeakHashMap<FluentLogger, String>());
37+
loggers = new WeakHashMap<FluentLogger, String>();
3838
}
3939

4040
public FluentLogger getLogger(String tagPrefix) {
@@ -49,7 +49,7 @@ public FluentLogger getLogger(String tagPrefix, String host, int port, int timeo
4949
return getLogger(tagPrefix, host, port, timeout, bufferCapacity, new ExponentialDelayReconnector());
5050
}
5151

52-
public FluentLogger getLogger(String tagPrefix, String host, int port, int timeout, int bufferCapacity,
52+
public synchronized FluentLogger getLogger(String tagPrefix, String host, int port, int timeout, int bufferCapacity,
5353
Reconnector reconnector) {
5454
String key = String.format("%s_%s_%d_%d_%d", new Object[] { tagPrefix, host, port, timeout, bufferCapacity });
5555

0 commit comments

Comments
 (0)