chore: remove stray logger
This commit is contained in:
parent
c8e4d23955
commit
a52a416b6d
1 changed files with 0 additions and 6 deletions
|
|
@ -15,7 +15,6 @@ import (
|
|||
|
||||
// Modbus is an api.Meter implementation with configurable getters and setters.
|
||||
type Modbus struct {
|
||||
log *util.Logger
|
||||
conn *modbus.Connection
|
||||
device meters.Device
|
||||
opPower modbus.Operation
|
||||
|
|
@ -88,7 +87,6 @@ func NewModbusFromConfig(other map[string]interface{}) (api.Meter, error) {
|
|||
}
|
||||
|
||||
m := &Modbus{
|
||||
log: log,
|
||||
conn: conn,
|
||||
device: device,
|
||||
}
|
||||
|
|
@ -151,10 +149,6 @@ func (m *Modbus) floatGetter(op modbus.Operation) (float64, error) {
|
|||
err = nil
|
||||
}
|
||||
|
||||
if err == nil {
|
||||
m.log.TRACE.Printf("%+v", res)
|
||||
}
|
||||
|
||||
return res.Value, err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue