about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-15 23:28:08 +0100
committerEmile <hanemile@protonmail.com>2020-03-15 23:28:08 +0100
commit21d44c1249f423b75edac087e4e52c00092e70f7 (patch)
tree481701a432719d46e027805e03ad14ecd0b4ad8a /src
parentfbbbee4a952d24f5670fc614090e896e8c221eb2 (diff)
trace logging
Diffstat (limited to 'src')
-rw-r--r--src/http/http.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/http/http.go b/src/http/http.go
index 17b0963..252156b 100644
--- a/src/http/http.go
+++ b/src/http/http.go
@@ -178,7 +178,6 @@ func pathHandler(w http.ResponseWriter, r *http.Request) {
 	t, err = t.ParseGlob("./hosted/tmpl/*.html")
 	if err != nil {
 		logrus.Warn(err)
-		w.WriteHeader(http.StatusInternalServerError)
 		return
 	}
 
@@ -233,18 +232,18 @@ func filterIsValid(name string) bool {
 		}
 	}
 
-	logrus.Info("extension")
+	logrus.Trace("extension")
 
 	extensions := viper.GetStringSlice("hide.extensions")
 
 	splitFileName := strings.Split(name, ".")
 	fileExtension := splitFileName[len(splitFileName)-1]
-	logrus.Infof("fE: %s", fileExtension)
+	logrus.Tracef("fE: %s", fileExtension)
 
 	for _, extension := range extensions {
-		logrus.Infof("E: %s", extension)
+		logrus.Tracef("E: %s", extension)
 		if fileExtension == extension {
-			logrus.Infof("E: %s ############################", extension)
+			logrus.Tracef("E: %s ############################", extension)
 			return false
 		}
 	}