Github user mike-jumper commented on a diff in the pull request:

    
https://github.com/apache/incubator-guacamole-client/pull/161#discussion_r120146889
  
    --- Diff: 
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/tunnel/RestrictedGuacamoleTunnelService.java
 ---
    @@ -193,6 +200,12 @@ public int compare(ModeledConnection a, 
ModeledConnection b) {
             // Return the first unreserved connection
             for (ModeledConnection connection : sortedConnections) {
     
    +            // If connection weight is zero or negative, this host is 
disabled and should not be used.
    +            if (connection.getConnectionWeight() < 1) {
    +                logger.warn("Weight for {} is < 1, connection will be 
skipped.", connection.getName());
    --- End diff --
    
    Perhaps this should instead be logged at the debug level?
    
    If zero and negative weights are intended mechanisms for disabling 
connection, logging this at the warning level will result in the logs being 
filled with messages warning the admin that they're using a feature as intended.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to