aboutsummaryrefslogtreecommitdiff
path: root/rss.go
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2017-12-13 10:49:13 -0800
committerChristine Dodrill <me@christine.website>2017-12-13 11:42:37 -0800
commit9003cd5b93421e2942531464ccc07fdd129cf252 (patch)
tree053dae2d7d94b77c1d0405234e845f268c3a9f5b /rss.go
parent3a21ef192628f6952eaa981bcdf718a35a4b43c7 (diff)
downloadxesite-9003cd5b93421e2942531464ccc07fdd129cf252.tar.xz
xesite-9003cd5b93421e2942531464ccc07fdd129cf252.zip
fix build
Diffstat (limited to 'rss.go')
-rw-r--r--rss.go6
1 files changed, 3 insertions, 3 deletions
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,