diff --git a/handlers/handlers.go b/handlers/handlers.go index d89d4f30..fe8a4ae7 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -173,12 +173,10 @@ func ExecuteResponse(w http.ResponseWriter, r *http.Request, file string, data i log.Errorln(err) } - log.Infoln("Ca commence à être intéressant") asset := file if source.UsingAssets(utils.Directory) { asset = utils.Directory + "/assets/" + file - log.Infoln(fmt.Sprintf("asset : %s", asset)) if _, err := mainTemplate.ParseFiles(asset); err != nil { log.Errorln(err) @@ -193,12 +191,10 @@ func ExecuteResponse(w http.ResponseWriter, r *http.Request, file string, data i log.Errorln(err) } } - log.Infoln("step 3") // execute the template if err := mainTemplate.Execute(w, data); err != nil { log.Errorln(err) } - log.Infoln("step 4") } func returnJson(d interface{}, w http.ResponseWriter, r *http.Request) { diff --git a/source/source.go b/source/source.go index 81a7f4ac..544ed1a1 100644 --- a/source/source.go +++ b/source/source.go @@ -88,7 +88,6 @@ func CompileSASS() error { // UsingAssets returns true if the '/assets' folder is found in the directory func UsingAssets(folder string) bool { - log.Infoln(fmt.Sprintf("using assets? checking %s", folder)) if _, err := os.Stat(folder + "/assets"); err == nil { return true } else {