summaryrefslogtreecommitdiff
path: root/examples/updateable/content/song.go
diff options
context:
space:
mode:
authorSteve <nilslice@gmail.com>2017-03-11 13:17:09 -0800
committerGitHub <noreply@github.com>2017-03-11 13:17:09 -0800
commitfaf6b653bf00eb20c1804fbacee3557847014abb (patch)
tree2ec2762536337ac9511d814f1cdec85fa9951f7d /examples/updateable/content/song.go
parent88d0ebf9d6dd764c82a4a8ac702064e7f504bc25 (diff)
oops
didn't realize you were requiring the title and artist field in the AcceptUpdate method, adding it back to the log statement
Diffstat (limited to 'examples/updateable/content/song.go')
-rw-r--r--examples/updateable/content/song.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/updateable/content/song.go b/examples/updateable/content/song.go
index 75d51ca..b14b8dd 100644
--- a/examples/updateable/content/song.go
+++ b/examples/updateable/content/song.go
@@ -136,7 +136,7 @@ func (s *Song) BeforeAcceptUpdate(res http.ResponseWriter, req *http.Request) er
// request.
func (s *Song) AfterAcceptUpdate(res http.ResponseWriter, req *http.Request) error {
addr := req.RemoteAddr
- log.Println("Song updated by:", addr)
+ log.Println("Song updated by:", addr, "with title", req.PostFormValue("title"))
return nil
}