Skip to content

Commit

Permalink
change logging settings
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesReate committed Oct 4, 2024
1 parent d339a14 commit 05ac074
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions internal/api/grpc_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func (s *GrpcService) GetCanBusDumpFiles(ctx context.Context, in *pgrpc.GetCanBu
})

if err != nil {
s.logger.Err(err).Msgf("failed to GetCanBusDumpFiles for addr: %s", in.EthAddr)
return nil, err
}

Expand Down
4 changes: 2 additions & 2 deletions internal/controllers/device_config_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func (d *DeviceConfigController) GetConfigURLsFromVIN(c *fiber.Ctx) error {
if err != nil {
return err
}
d.log.Info().Str("vin", *ud.Vin).Msgf("template configuration urls for VIN %s. strategy: %s. dbc: %s, pids: %s, settings: %s",
d.log.Debug().Str("vin", *ud.Vin).Msgf("template configuration urls for VIN %s. strategy: %s. dbc: %s, pids: %s, settings: %s",
*ud.Vin, strategy, response.DbcURL, response.PidURL, response.DeviceSettingURL)

return c.JSON(response)
Expand All @@ -347,7 +347,7 @@ func (d *DeviceConfigController) GetConfigURLsFromEthAddr(c *fiber.Ctx) error {
// first check for direct mapping
directConfig := d.deviceTemplateService.FindDirectDeviceToTemplateConfig(c.Context(), address)
if directConfig != nil {
d.log.Info().Str("ethAddr", ethAddr).Msgf("template configuration urls for eth addr %s. strategy: direct. dbc: %s, pids: %s, settings: %s",
d.log.Debug().Str("ethAddr", ethAddr).Msgf("template configuration urls for eth addr %s. strategy: direct. dbc: %s, pids: %s, settings: %s",
ethAddr, directConfig.DbcURL, directConfig.PidURL, directConfig.DeviceSettingURL)
return c.JSON(directConfig)
}
Expand Down

0 comments on commit 05ac074

Please sign in to comment.