Skip to content

Commit

Permalink
Modified error log when flight information could not be found.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewl committed May 27, 2018
1 parent 86ead29 commit bebcb30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ func process_basestation_message(message string) {
dest_airport_code, err = destination_finder.GetDestinationFromCallsign(string(flight_callsign))
logger.Log("msg", fmt.Sprintf("Got '%s' from callsign '%s'", dest_airport_code, flight_callsign))
if err != nil {
logger.Log("msg", fmt.Sprintf("There was an error retrieving the destination from the callsign %s", flight_callsign), "err", err)
logger.Log(
"msg", "There was an error retrieving the destination from the callsign",
"callsign", flight_callsign,
"err", err)
dest_airport_code = "error"
}
flightcache.Set(flightid+"_dest_lat_long", []byte(dest_airport_code))
Expand Down

0 comments on commit bebcb30

Please sign in to comment.