From bebcb30f290ca20f12b39108761890f7e02c0986 Mon Sep 17 00:00:00 2001 From: Andrew Larcombe Date: Sun, 27 May 2018 19:43:24 +0100 Subject: [PATCH] Modified error log when flight information could not be found. --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 9e30c488..2a0fdcf2 100644 --- a/main.go +++ b/main.go @@ -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))