Skip to content

Commit

Permalink
fix #487 Change WARN to DEBUG level log message when creating TcpReso…
Browse files Browse the repository at this point in the history
…urces/UdpResources

Leave WARN level log when updating TcpResources/UdpResources
  • Loading branch information
violetagg committed Oct 30, 2018
1 parent c8628d4 commit 3a5ede1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/reactor/ipc/netty/tcp/TcpResources.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ protected static <T extends TcpResources> T getOrCreate(AtomicReference<T> ref,
}
else {
String loopType = loops == null ? "default" : "provided";
log.warn("[{}] resources will use the {} LoopResources: {}", name, loopType, update.defaultLoops);
log.debug("[{}] resources will use the {} LoopResources: {}", name, loopType, update.defaultLoops);
String poolType = pools == null ? "default" : "provided";
log.warn("[{}] resources will use the {} PoolResources: {}", name, poolType, update.defaultPools);
log.debug("[{}] resources will use the {} PoolResources: {}", name, poolType, update.defaultPools);
}
return update;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/reactor/ipc/netty/udp/UdpResources.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ protected static UdpResources getOrCreate(LoopResources loops,
}
else {
String loopType = loops == null ? "default" : "provided";
log.warn("[{}] resources will use the {} LoopResources: {}", name, loopType, update.defaultLoops);
log.debug("[{}] resources will use the {} LoopResources: {}", name, loopType, update.defaultLoops);
}
return update;
}
Expand Down

0 comments on commit 3a5ede1

Please sign in to comment.