Remove dbeug logs
parent
43d44a4518
commit
e6a126ea0b
|
|
@ -8,7 +8,6 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"local/notes-server/filetree"
|
"local/notes-server/filetree"
|
||||||
"log"
|
|
||||||
"path"
|
"path"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
@ -63,7 +62,6 @@ func (n *Notes) commentFormer(urlPath string, md []byte) html.RenderNodeFunc {
|
||||||
}
|
}
|
||||||
return func(w io.Writer, node ast.Node, entering bool) (ast.WalkStatus, bool) {
|
return func(w io.Writer, node ast.Node, entering bool) (ast.WalkStatus, bool) {
|
||||||
if heading, ok := node.(*ast.Heading); ok && !entering {
|
if heading, ok := node.(*ast.Heading); ok && !entering {
|
||||||
log.Printf("%+v", heading)
|
|
||||||
nextHeader()
|
nextHeader()
|
||||||
fmt.Fprintf(w, `
|
fmt.Fprintf(w, `
|
||||||
<form method="POST" action=%q class="comment">
|
<form method="POST" action=%q class="comment">
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ package server
|
||||||
import (
|
import (
|
||||||
"html"
|
"html"
|
||||||
"local/notes-server/filetree"
|
"local/notes-server/filetree"
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"path"
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
@ -11,7 +10,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s *Server) comment(w http.ResponseWriter, r *http.Request) {
|
func (s *Server) comment(w http.ResponseWriter, r *http.Request) {
|
||||||
log.Println("COMMAND", r.Method, r.FormValue("lineno"), r.FormValue("content"))
|
|
||||||
if r.Method != "POST" {
|
if r.Method != "POST" {
|
||||||
http.NotFound(w, r)
|
http.NotFound(w, r)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue