Wake-up: add more logging (#8687)
This commit is contained in:
parent
92b56e5519
commit
612cc8a404
1 changed files with 2 additions and 0 deletions
|
|
@ -180,6 +180,7 @@ func (lp *Loadpoint) setActiveVehicle(vehicle api.Vehicle) {
|
|||
func (lp *Loadpoint) wakeUpVehicle() {
|
||||
// charger
|
||||
if c, ok := lp.charger.(api.Resurrector); ok {
|
||||
lp.log.DEBUG.Println("wake-up charger")
|
||||
if err := c.WakeUp(); err != nil {
|
||||
lp.log.ERROR.Printf("wake-up charger: %v", err)
|
||||
}
|
||||
|
|
@ -187,6 +188,7 @@ func (lp *Loadpoint) wakeUpVehicle() {
|
|||
|
||||
// vehicle
|
||||
if vs, ok := lp.GetVehicle().(api.Resurrector); ok {
|
||||
lp.log.DEBUG.Println("wake-up vehicle")
|
||||
if err := vs.WakeUp(); err != nil {
|
||||
lp.log.ERROR.Printf("wake-up vehicle: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue