Skip to content

Commit e2c7fe5

Browse files
author
Sheng Yang
committed
Fix debug messages in RulesManagerImpl
Reviewed-by: Edison
1 parent 94eac37 commit e2c7fe5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎server/src/com/cloud/network/rules/RulesManagerImpl.java‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ public boolean applyPortForwardingRules(long ipId, boolean continueOnError, Acco
633633
List<PortForwardingRuleVO> rules = _portForwardingDao.listForApplication(ipId);
634634

635635
if (rules.size() == 0) {
636-
s_logger.debug("There are no firwall rules to apply for ip id=" + ipId);
636+
s_logger.debug("There are no port forwarding rules to apply for ip id=" + ipId);
637637
return true;
638638
}
639639

@@ -646,7 +646,7 @@ public boolean applyPortForwardingRules(long ipId, boolean continueOnError, Acco
646646
return false;
647647
}
648648
} catch (ResourceUnavailableException ex) {
649-
s_logger.warn("Failed to apply firewall rules due to ", ex);
649+
s_logger.warn("Failed to apply port forwarding rules for ip due to ", ex);
650650
return false;
651651
}
652652

@@ -659,7 +659,7 @@ public boolean applyStaticNatRulesForIp(long sourceIpId, boolean continueOnError
659659
List<StaticNatRule> staticNatRules = new ArrayList<StaticNatRule>();
660660

661661
if (rules.size() == 0) {
662-
s_logger.debug("There are no firwall rules to apply for ip id=" + sourceIpId);
662+
s_logger.debug("There are no static nat rules to apply for ip id=" + sourceIpId);
663663
return true;
664664
}
665665

@@ -676,7 +676,7 @@ public boolean applyStaticNatRulesForIp(long sourceIpId, boolean continueOnError
676676
return false;
677677
}
678678
} catch (ResourceUnavailableException ex) {
679-
s_logger.warn("Failed to apply static nat rules due to ", ex);
679+
s_logger.warn("Failed to apply static nat rules for ip due to ", ex);
680680
return false;
681681
}
682682

@@ -700,7 +700,7 @@ public boolean applyPortForwardingRulesForNetwork(long networkId, boolean contin
700700
return false;
701701
}
702702
} catch (ResourceUnavailableException ex) {
703-
s_logger.warn("Failed to apply firewall rules due to ", ex);
703+
s_logger.warn("Failed to apply port forwarding rules for network due to ", ex);
704704
return false;
705705
}
706706

@@ -730,7 +730,7 @@ public boolean applyStaticNatRulesForNetwork(long networkId, boolean continueOnE
730730
return false;
731731
}
732732
} catch (ResourceUnavailableException ex) {
733-
s_logger.warn("Failed to apply firewall rules due to ", ex);
733+
s_logger.warn("Failed to apply static nat rules for network due to ", ex);
734734
return false;
735735
}
736736

@@ -762,7 +762,7 @@ public boolean applyStaticNatsForNetwork(long networkId, boolean continueOnError
762762
return false;
763763
}
764764
} catch (ResourceUnavailableException ex) {
765-
s_logger.warn("Failed to create static nat rule due to ", ex);
765+
s_logger.warn("Failed to create static nat for network due to ", ex);
766766
return false;
767767
}
768768

0 commit comments

Comments
 (0)