Changed fmt to logger
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s
This commit is contained in:
@ -251,10 +251,10 @@ func New(config *config.Config) (*Client, error) {
|
||||
client.registerDevice()
|
||||
}
|
||||
|
||||
// TODO
|
||||
fmt.Printf("Parcing cars: %d\n", len(respParsed.Path("data.vehicles").Children()))
|
||||
// TODO: create a list of the car with currently present data
|
||||
client.logger.Debug("parcing cars assigned to the account", "quantity", len(respParsed.Path("data.vehicles").Children()))
|
||||
for _, vehicle := range respParsed.Path("data.vehicles").Children() {
|
||||
fmt.Printf("CAR: %s\n", vehicle.Path("vin").Data().(string))
|
||||
client.logger.Debug("parsing car", "vin", vehicle.Path("vin").Data().(string))
|
||||
client.listOfVins = append(client.listOfVins, vehicle.Path("vin").Data().(string))
|
||||
}
|
||||
client.currentVin = respParsed.Path("data.vehicles.0.vin").Data().(string)
|
||||
|
Reference in New Issue
Block a user