1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-03-15 16:08:19 +00:00

Remove extraneous logging

This commit is contained in:
handlerug 2021-06-12 22:04:30 +07:00
parent 839f8bc2d6
commit d4ac58b2d8
No known key found for this signature in database
GPG Key ID: 38009F0605051491
2 changed files with 0 additions and 6 deletions

View File

@ -3,7 +3,6 @@ package static
import (
"embed"
"io/fs"
"log"
"os"
)
@ -22,20 +21,16 @@ type HybridFS struct {
// Open tries to open the requested file using all filesystems provided.
// If neither succeeds, it returns the last error.
func (f HybridFS) Open(name string) (fs.File, error) {
log.Printf("serving static file: %s\n", name)
var file fs.File
var err error
for _, candidate := range f.fs {
file, err = candidate.Open(name)
if err == nil {
log.Println("succeeded")
return file, nil
}
}
log.Printf("failed: %v\n", err)
return nil, err
}

View File

@ -13,7 +13,6 @@ import (
)
func PrepareRq(rq *http.Request) {
log.Println(rq.RequestURI)
rq.URL.Path = strings.TrimSuffix(rq.URL.Path, "/")
}