diff --git a/server/backend/cron/canteen_head_count.go b/server/backend/cron/canteen_head_count.go index 23892602..b14b816f 100644 --- a/server/backend/cron/canteen_head_count.go +++ b/server/backend/cron/canteen_head_count.go @@ -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