engine: resources: Make net and firewalld resources quieter
They are too noisy!
This commit is contained in:
@@ -318,7 +318,9 @@ func (obj *FirewalldRes) CheckApply(ctx context.Context, apply bool) (bool, erro
|
|||||||
if obj.zone == "" {
|
if obj.zone == "" {
|
||||||
return false, fmt.Errorf("unexpected empty zone")
|
return false, fmt.Errorf("unexpected empty zone")
|
||||||
}
|
}
|
||||||
obj.init.Logf("zone: %s\n", obj.zone)
|
if obj.init.Debug {
|
||||||
|
obj.init.Logf("zone: %s", obj.zone)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
checkOK := true
|
checkOK := true
|
||||||
|
|||||||
@@ -427,7 +427,9 @@ func (obj *NetRes) addrCheckApply(ctx context.Context, apply bool) (bool, error)
|
|||||||
if !apply {
|
if !apply {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
if obj.init.Debug {
|
||||||
obj.init.Logf("addrCheckApply(%t)", apply)
|
obj.init.Logf("addrCheckApply(%t)", apply)
|
||||||
|
}
|
||||||
|
|
||||||
// check each address and delete the ones that aren't in the definition
|
// check each address and delete the ones that aren't in the definition
|
||||||
if err := obj.iface.addrApplyDelete(obj.Addrs); err != nil {
|
if err := obj.iface.addrApplyDelete(obj.Addrs); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user