about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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
 		}
 	}