mirror of https://github.com/statping/statping
Removed useless logging messages [#137](https://github.com/statping-ng/statping-ng/issues/137)
parent
96a844a014
commit
d0555d792f
|
@ -173,12 +173,10 @@ func ExecuteResponse(w http.ResponseWriter, r *http.Request, file string, data i
|
||||||
log.Errorln(err)
|
log.Errorln(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Infoln("Ca commence à être intéressant")
|
|
||||||
asset := file
|
asset := file
|
||||||
if source.UsingAssets(utils.Directory) {
|
if source.UsingAssets(utils.Directory) {
|
||||||
|
|
||||||
asset = utils.Directory + "/assets/" + file
|
asset = utils.Directory + "/assets/" + file
|
||||||
log.Infoln(fmt.Sprintf("asset : %s", asset))
|
|
||||||
|
|
||||||
if _, err := mainTemplate.ParseFiles(asset); err != nil {
|
if _, err := mainTemplate.ParseFiles(asset); err != nil {
|
||||||
log.Errorln(err)
|
log.Errorln(err)
|
||||||
|
@ -193,12 +191,10 @@ func ExecuteResponse(w http.ResponseWriter, r *http.Request, file string, data i
|
||||||
log.Errorln(err)
|
log.Errorln(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.Infoln("step 3")
|
|
||||||
// execute the template
|
// execute the template
|
||||||
if err := mainTemplate.Execute(w, data); err != nil {
|
if err := mainTemplate.Execute(w, data); err != nil {
|
||||||
log.Errorln(err)
|
log.Errorln(err)
|
||||||
}
|
}
|
||||||
log.Infoln("step 4")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func returnJson(d interface{}, w http.ResponseWriter, r *http.Request) {
|
func returnJson(d interface{}, w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
@ -88,7 +88,6 @@ func CompileSASS() error {
|
||||||
|
|
||||||
// UsingAssets returns true if the '/assets' folder is found in the directory
|
// UsingAssets returns true if the '/assets' folder is found in the directory
|
||||||
func UsingAssets(folder string) bool {
|
func UsingAssets(folder string) bool {
|
||||||
log.Infoln(fmt.Sprintf("using assets? checking %s", folder))
|
|
||||||
if _, err := os.Stat(folder + "/assets"); err == nil {
|
if _, err := os.Stat(folder + "/assets"); err == nil {
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue