You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/08/26 13:36:52 UTC

[GitHub] [cloudstack] joseflauzino commented on a diff in pull request #6357: Add logs to the listLoadBalancerRuleInstances API

joseflauzino commented on code in PR #6357:
URL: https://github.com/apache/cloudstack/pull/6357#discussion_r956051653


##########
engine/schema/src/main/java/com/cloud/network/dao/LoadBalancerVO.java:
##########
@@ -136,4 +136,9 @@ public Scheme getScheme() {
     public String getCidrList() {
         return cidrList;
     }
+
+    @Override
+    public String toString() {
+        return String.format("Load Balancer {uuid: \"%s\", name: \"%s\"}", getUuid(), name);

Review Comment:
   @GutoVeronezi 
   I think `ReflectionToStringBuilderUtils` will not work properly here, since `LoadBalancerVO` doesn't have the `uuid` attribute (it's inherited from `FirewallRuleVO`). So I've used `String.format()` getting the `uuid` from the getter method.



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org