jkevan commented on a change in pull request #266:
URL: https://github.com/apache/unomi/pull/266#discussion_r598910104



##########
File path: 
plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java
##########
@@ -232,9 +232,9 @@ private boolean ipLookupInDatabase(String remoteAddr, 
Session session) {
             }
             return true;
         } catch (IOException | GeoIp2Exception e) {
-            logger.warn("Cannot resolve IP {}, enable debug log level for 
complete stacktrace", remoteAddr);
+            logger.warn("Cannot resolve IP, enable debug log level for 
complete stacktrace");
             if (logger.isDebugEnabled()) {
-                logger.debug("Cannot resolve IP", e);
+                logger.debug("Cannot resolve IP: " + remoteAddr, e);

Review comment:
       Yes I checked, we can do like this.
   if the last parameter is an exception it will be interpreted as such 
regardless of the underlying framework.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to