Skip to content

Commit

Permalink
fixed another field not using structured logging
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 15, 2023
1 parent 41f93bd commit a2f4e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/backend/cron/canteen_head_count.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (canteen CanteenApInformation) requestApData() []AccessPoint {
// Parse as JSON
var aps []AccessPoint
if err = json.NewDecoder(resp.Body).Decode(&aps); err != nil {
log.WithError(err).Error("Canteen HeadCount parsing output as JSON failed for: ", canteen.CanteenId)
log.WithError(err).WithField("CanteenId", canteen.CanteenId).Error("Canteen HeadCount parsing failed")
return []AccessPoint{}
}
return aps
Expand Down

0 comments on commit a2f4e0d

Please sign in to comment.