From 9003cd5b93421e2942531464ccc07fdd129cf252 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 13 Dec 2017 10:49:13 -0800 Subject: fix build --- rss.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rss.go') diff --git a/rss.go b/rss.go index cafcde4..15e9163 100644 --- a/rss.go +++ b/rss.go @@ -20,7 +20,7 @@ func (s *Site) createFeed(w http.ResponseWriter, r *http.Request) { err := s.rssFeed.WriteRss(w) if err != nil { http.Error(w, "Internal server error", http.StatusInternalServerError) - ln.Error(err, ln.F{ + ln.Error(r.Context(), err, ln.F{ "remote_addr": r.RemoteAddr, "action": "generating_rss", "uri": r.RequestURI, @@ -36,7 +36,7 @@ func (s *Site) createAtom(w http.ResponseWriter, r *http.Request) { err := s.rssFeed.WriteAtom(w) if err != nil { http.Error(w, "Internal server error", http.StatusInternalServerError) - ln.Error(err, ln.F{ + ln.Error(r.Context(), err, ln.F{ "remote_addr": r.RemoteAddr, "action": "generating_atom", "uri": r.RequestURI, @@ -54,7 +54,7 @@ func (s *Site) createJsonFeed(w http.ResponseWriter, r *http.Request) { err := e.Encode(s.jsonFeed) if err != nil { http.Error(w, "Internal server error", http.StatusInternalServerError) - ln.Error(err, ln.F{ + ln.Error(r.Context(), err, ln.F{ "remote_addr": r.RemoteAddr, "action": "generating_jsonfeed", "uri": r.RequestURI, -- cgit v1.2.3