Skip to content

Commit ca80e7e

Browse files
committed
Change all error logging to debug
1 parent cec496e commit ca80e7e

20 files changed

+18
-51
lines changed

features/deviceclassification.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package features
22

33
import (
4-
"github.com/enbility/eebus-go/logging"
54
"github.com/enbility/eebus-go/spine"
65
"github.com/enbility/eebus-go/spine/model"
76
)
@@ -43,7 +42,6 @@ func (d *DeviceClassification) RequestManufacturerDetailsForEntity() (*model.Msg
4342
// request DeviceClassificationManufacturer from a remote entity
4443
msgCounter, err := d.requestData(model.FunctionTypeDeviceClassificationManufacturerData, nil, nil)
4544
if err != nil {
46-
logging.Log.Error(err)
4745
return nil, err
4846
}
4947

features/deviceconfiguration.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package features
33
import (
44
"time"
55

6-
"github.com/enbility/eebus-go/logging"
76
"github.com/enbility/eebus-go/spine"
87
"github.com/enbility/eebus-go/spine/model"
98
)
@@ -42,7 +41,6 @@ func NewDeviceConfiguration(localRole, remoteRole model.RoleType, spineLocalDevi
4241
func (d *DeviceConfiguration) Request() error {
4342
// request DeviceConfigurationKeyValueDescriptionListData from a remote entity
4443
if _, err := d.requestData(model.FunctionTypeDeviceConfigurationKeyValueDescriptionListData, nil, nil); err != nil {
45-
logging.Log.Error(err)
4644
return err
4745
}
4846

@@ -54,7 +52,6 @@ func (d *DeviceConfiguration) RequestKeyValueList() (*model.MsgCounterType, erro
5452
// request FunctionTypeDeviceConfigurationKeyValueListData from a remote entity
5553
msgCounter, err := d.requestData(model.FunctionTypeDeviceConfigurationKeyValueListData, nil, nil)
5654
if err != nil {
57-
logging.Log.Error(err)
5855
return nil, err
5956
}
6057

features/devicediagnosis.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package features
22

33
import (
4-
"github.com/enbility/eebus-go/logging"
54
"github.com/enbility/eebus-go/spine"
65
"github.com/enbility/eebus-go/spine/model"
76
)
@@ -33,7 +32,6 @@ func (d *DeviceDiagnosis) RequestStateForEntity() (*model.MsgCounterType, error)
3332
// request FunctionTypeDeviceDiagnosisStateData from a remote entity
3433
msgCounter, err := d.requestData(model.FunctionTypeDeviceDiagnosisStateData, nil, nil)
3534
if err != nil {
36-
logging.Log.Error(err)
3735
return nil, err
3836
}
3937

features/electricalconnection.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package features
22

33
import (
4-
"github.com/enbility/eebus-go/logging"
54
"github.com/enbility/eebus-go/spine"
65
"github.com/enbility/eebus-go/spine/model"
76
)
@@ -44,7 +43,6 @@ func NewElectricalConnection(localRole, remoteRole model.RoleType, spineLocalDev
4443
// request ElectricalConnectionDescriptionListDataType from a remote entity
4544
func (e *ElectricalConnection) RequestDescription() error {
4645
if _, err := e.requestData(model.FunctionTypeElectricalConnectionDescriptionListData, nil, nil); err != nil {
47-
logging.Log.Error(err)
4846
return err
4947
}
5048

@@ -54,7 +52,6 @@ func (e *ElectricalConnection) RequestDescription() error {
5452
// request FunctionTypeElectricalConnectionParameterDescriptionListData from a remote entity
5553
func (e *ElectricalConnection) RequestParameterDescription() error {
5654
if _, err := e.requestData(model.FunctionTypeElectricalConnectionParameterDescriptionListData, nil, nil); err != nil {
57-
logging.Log.Error(err)
5855
return err
5956
}
6057

@@ -65,7 +62,6 @@ func (e *ElectricalConnection) RequestParameterDescription() error {
6562
func (e *ElectricalConnection) RequestPermittedValueSet() (*model.MsgCounterType, error) {
6663
msgCounter, err := e.requestData(model.FunctionTypeElectricalConnectionPermittedValueSetListData, nil, nil)
6764
if err != nil {
68-
logging.Log.Error(err)
6965
return nil, err
7066
}
7167

features/feature.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (f *FeatureImpl) requestData(function model.FunctionType, selectors any, el
8383

8484
msgCounter, fErr := f.featureLocal.RequestData(function, selectors, elements, f.featureRemote)
8585
if fErr != nil {
86-
logging.Log.Error(fErr.String())
86+
logging.Log.Debug(fErr.String())
8787
return nil, errors.New(fErr.String())
8888
}
8989

features/identification.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package features
22

33
import (
4-
"github.com/enbility/eebus-go/logging"
54
"github.com/enbility/eebus-go/spine"
65
"github.com/enbility/eebus-go/spine/model"
76
)
@@ -32,7 +31,6 @@ func NewIdentification(localRole, remoteRole model.RoleType, spineLocalDevice *s
3231
func (i *Identification) Request() (*model.MsgCounterType, error) {
3332
msgCounter, err := i.requestData(model.FunctionTypeIdentificationListData, nil, nil)
3433
if err != nil {
35-
logging.Log.Error(err)
3634
return nil, err
3735
}
3836

features/incentivetable.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package features
22

33
import (
4-
"github.com/enbility/eebus-go/logging"
54
"github.com/enbility/eebus-go/spine"
65
"github.com/enbility/eebus-go/spine/model"
76
)
@@ -27,7 +26,6 @@ func NewIncentiveTable(localRole, remoteRole model.RoleType, spineLocalDevice *s
2726
func (i *IncentiveTable) RequestDescription() error {
2827
_, err := i.requestData(model.FunctionTypeIncentiveTableDescriptionData, nil, nil)
2928
if err != nil {
30-
logging.Log.Error(err)
3129
return err
3230
}
3331

@@ -38,7 +36,6 @@ func (i *IncentiveTable) RequestDescription() error {
3836
func (i *IncentiveTable) RequestConstraints() error {
3937
_, err := i.requestData(model.FunctionTypeIncentiveTableConstraintsData, nil, nil)
4038
if err != nil {
41-
logging.Log.Error(err)
4239
return err
4340
}
4441

@@ -49,7 +46,6 @@ func (i *IncentiveTable) RequestConstraints() error {
4946
func (i *IncentiveTable) RequestValues() error {
5047
_, err := i.requestData(model.FunctionTypeIncentiveTableData, nil, nil)
5148
if err != nil {
52-
logging.Log.Error(err)
5349
return err
5450
}
5551

features/loadcontrol.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package features
22

33
import (
4-
"github.com/enbility/eebus-go/logging"
54
"github.com/enbility/eebus-go/spine"
65
"github.com/enbility/eebus-go/spine/model"
76
)
@@ -37,7 +36,6 @@ func NewLoadControl(localRole, remoteRole model.RoleType, spineLocalDevice *spin
3736
// request FunctionTypeLoadControlLimitDescriptionListData from a remote device
3837
func (l *LoadControl) RequestLimitDescription() error {
3938
if _, err := l.requestData(model.FunctionTypeLoadControlLimitDescriptionListData, nil, nil); err != nil {
40-
logging.Log.Error(err)
4139
return err
4240
}
4341

@@ -47,7 +45,6 @@ func (l *LoadControl) RequestLimitDescription() error {
4745
// request FunctionTypeLoadControlLimitConstraintsListData from a remote device
4846
func (l *LoadControl) RequestLimitConstraints() error {
4947
if _, err := l.requestData(model.FunctionTypeLoadControlLimitConstraintsListData, nil, nil); err != nil {
50-
logging.Log.Error(err)
5148
return err
5249
}
5350

@@ -58,7 +55,6 @@ func (l *LoadControl) RequestLimitConstraints() error {
5855
func (l *LoadControl) RequestLimits() (*model.MsgCounterType, error) {
5956
msgCounter, err := l.requestData(model.FunctionTypeLoadControlLimitListData, nil, nil)
6057
if err != nil {
61-
logging.Log.Error(err)
6258
return nil, err
6359
}
6460

features/measurement.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package features
33
import (
44
"time"
55

6-
"github.com/enbility/eebus-go/logging"
76
"github.com/enbility/eebus-go/spine"
87
"github.com/enbility/eebus-go/spine/model"
98
)
@@ -39,7 +38,6 @@ func NewMeasurement(localRole, remoteRole model.RoleType, spineLocalDevice *spin
3938
// request FunctionTypeMeasurementDescriptionListData from a remote device
4039
func (m *Measurement) RequestDescription() error {
4140
if _, err := m.requestData(model.FunctionTypeMeasurementDescriptionListData, nil, nil); err != nil {
42-
logging.Log.Error(err)
4341
return err
4442
}
4543

@@ -49,7 +47,6 @@ func (m *Measurement) RequestDescription() error {
4947
// request FunctionTypeMeasurementConstraintsListData from a remote entity
5048
func (m *Measurement) RequestConstraints() error {
5149
if _, err := m.requestData(model.FunctionTypeMeasurementConstraintsListData, nil, nil); err != nil {
52-
logging.Log.Error(err)
5350
return err
5451
}
5552

@@ -60,7 +57,6 @@ func (m *Measurement) RequestConstraints() error {
6057
func (m *Measurement) Request() (*model.MsgCounterType, error) {
6158
msgCounter, err := m.requestData(model.FunctionTypeMeasurementListData, nil, nil)
6259
if err != nil {
63-
logging.Log.Error(err)
6460
return nil, err
6561
}
6662

features/timeseries.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package features
33
import (
44
"time"
55

6-
"github.com/enbility/eebus-go/logging"
76
"github.com/enbility/eebus-go/spine"
87
"github.com/enbility/eebus-go/spine/model"
98
)
@@ -69,7 +68,6 @@ func NewTimeSeries(localRole, remoteRole model.RoleType, spineLocalDevice *spine
6968
func (t *TimeSeries) RequestDescription() error {
7069
_, err := t.requestData(model.FunctionTypeTimeSeriesDescriptionListData, nil, nil)
7170
if err != nil {
72-
logging.Log.Error(err)
7371
return err
7472
}
7573

@@ -80,7 +78,6 @@ func (t *TimeSeries) RequestDescription() error {
8078
func (t *TimeSeries) RequestConstraints() error {
8179
_, err := t.requestData(model.FunctionTypeTimeSeriesConstraintsListData, nil, nil)
8280
if err != nil {
83-
logging.Log.Error(err)
8481
return err
8582
}
8683

@@ -91,7 +88,6 @@ func (t *TimeSeries) RequestConstraints() error {
9188
func (t *TimeSeries) Request() (*model.MsgCounterType, error) {
9289
msgCounter, err := t.requestData(model.FunctionTypeTimeSeriesListData, nil, nil)
9390
if err != nil {
94-
logging.Log.Error(err)
9591
return nil, err
9692
}
9793

0 commit comments

Comments
 (0)