Fixed typo

This commit is contained in:
2025-05-28 14:36:50 -04:00
parent 439d4dc15b
commit ebff67ae18
2 changed files with 12 additions and 12 deletions

View File

@ -226,7 +226,7 @@ func New(config *config.Config) (*Client, error) {
resp := client.auth()
respParsed, err := gabs.ParseJSON(resp)
if err != nil {
client.logger.Error("error which parsing json", "request", "auth", "error", err.Error())
client.logger.Error("error while parsing json", "request", "auth", "error", err.Error())
}
if client.isResponseSuccessfull(resp) {
@ -324,7 +324,7 @@ func (c *Client) GetVehicles() []*Vehicle {
respParsed, err := gabs.ParseJSON([]byte(resp))
if err != nil {
c.logger.Error("error which parsing json", "request", "GetVehicles", "error", err.Error())
c.logger.Error("error while parsing json", "request", "GetVehicles", "error", err.Error())
}
c.logger.Debug("http request output", "request", "GetVehicles", "body", respParsed)
@ -377,7 +377,7 @@ func (c *Client) GetVehicleByVIN(vin string) *Vehicle {
respParsed, err := gabs.ParseJSON([]byte(resp))
if err != nil {
c.logger.Error("error which parsing json", "request", "GetVehicleByVIN", "error", err.Error())
c.logger.Error("error while parsing json", "request", "GetVehicleByVIN", "error", err.Error())
}
c.logger.Debug("http request output", "request", "GetVehicleByVIN", "body", respParsed)
@ -455,7 +455,7 @@ func (c *Client) GetVehicleStatus() {
respParsed, err := gabs.ParseJSON(resp)
if err != nil {
c.logger.Error("error which parsing json", "request", "GetVehicleStatus", "error", err.Error())
c.logger.Error("error while parsing json", "request", "GetVehicleStatus", "error", err.Error())
}
c.logger.Debug("GET VEHICLE STATUS OUTPUT", "body", respParsed)
@ -491,7 +491,7 @@ func (c *Client) GetClimateSettings() {
respParsed, err := gabs.ParseJSON(resp)
if err != nil {
c.logger.Error("error which parsing json", "request", "GetClimateSettings", "error", err.Error())
c.logger.Error("error while parsing json", "request", "GetClimateSettings", "error", err.Error())
}
c.logger.Debug("CLIMATE SETTINGS OUTPUT", "response", respParsed)
@ -562,7 +562,7 @@ func (c *Client) execute(requestUrl string, method string, params map[string]str
respParsed, err := gabs.ParseJSON(resBytes)
if err != nil {
c.logger.Error("error which parsing json", "request", "execute", "method", method, "url", requestUrl, "error", err.Error())
c.logger.Error("error while parsing json", "request", "execute", "method", method, "url", requestUrl, "error", err.Error())
}
// c.logger.Debug("HTTP OUTPUT", "body", string(resBytes))