Skip to content

Commit

Permalink
Remove uncomplete control messages (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekateluv committed Oct 3, 2023
1 parent f755aaa commit fc4ec8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
wb-rules (2.18.6) stable; urgency=medium

* Remove uncomplete contol messages

-- Ekaterina Volkova <ekaterina@ekateluv> Tue, 03 Oct 2023 12:05:23 +0300

wb-rules (2.18.5) stable; urgency=medium

* Replace warning to debug log level of uncomplete control message
Expand Down
6 changes: 0 additions & 6 deletions wbrules/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,15 +836,11 @@ func (engine *RuleEngine) driverEventHandler(event wbgong.DriverEvent) {

value, err = ctrl.GetValue()
if err != nil {
wbgong.Debug.Printf("%s: failed to convert value '%s', passing raw, error: %s",
spec.String(), ctrl.GetRawValue(), err.Error())
value = ctrl.GetRawValue()
}

prevValue, err = wbgong.ToTypedValue(e.PrevRawValue, ctrl.GetType())
if err != nil {
wbgong.Info.Printf("%s: failed to convert previous value '%s', passing raw",
spec.String(), e.PrevRawValue)
prevValue = e.PrevRawValue
}

Expand All @@ -862,8 +858,6 @@ func (engine *RuleEngine) driverEventHandler(event wbgong.DriverEvent) {
if !ctrl.IsDeleted() {
value, err = ctrl.GetValue()
if err != nil {
wbgong.Info.Printf("%s: failed to convert value '%s', passing raw, error: %s",
spec.String(), ctrl.GetRawValue(), err.Error())
value = ctrl.GetRawValue()
}
} else {
Expand Down

0 comments on commit fc4ec8f

Please sign in to comment.