diff --git a/restapi/restapi.go b/restapi/restapi.go index 9ef1860..a3edf42 100644 --- a/restapi/restapi.go +++ b/restapi/restapi.go @@ -52,7 +52,7 @@ func gettrends() { data, err := json.Marshal(totalJson) if err != nil { - log.Fatal("error marshaling combined activity: %v", err) + log.Fatalf("error marshaling combined activity: %v\n", err) } trendingexport = string(data) @@ -140,7 +140,7 @@ func search(w http.ResponseWriter, r *http.Request) { data, err := json.Marshal(totalJson) if err != nil { - log.Fatal("error marshaling combined activity: %v", err) + log.Fatalf("error marshaling combined activity: %v\n", err) } fmt.Fprintf(w, "%s", data) }