Remove noisy log statements
This commit is contained in:
parent
1df4f3f807
commit
38bbc35922
1 changed files with 0 additions and 5 deletions
|
|
@ -62,7 +62,6 @@ func view(w http.ResponseWriter, r *http.Request) {
|
|||
"tags": strings.Join(note.Tags, " "),
|
||||
"isOwner": user == note.Owner,
|
||||
}
|
||||
log.Printf("%s", context)
|
||||
|
||||
note.Render()
|
||||
err := templ.RenderTemplate(w, r, "view.tmpl.html", context)
|
||||
|
|
@ -237,15 +236,11 @@ func setTags(w http.ResponseWriter, r *http.Request) {
|
|||
tags := r.FormValue("tags")
|
||||
|
||||
note, ok := notes.Notes.GetOne(user, uid)
|
||||
log.Printf("Found note %s", note.Title)
|
||||
if !ok || note.Owner != user {
|
||||
http.Redirect(w, r, myurls.Reverse("view", urls.Repl{"note": uid}), http.StatusFound)
|
||||
return
|
||||
}
|
||||
|
||||
log.Printf("Note has existing tags %s", note.Tags)
|
||||
log.Printf("Form has raw value %s", tags)
|
||||
|
||||
note.Tags = strings.Split(tags, " ")
|
||||
note.Save()
|
||||
http.Redirect(w, r, myurls.Reverse("view", urls.Repl{"note": note.Uid}), http.StatusFound)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue