to internal logger for levels, all encompassing path

This commit is contained in:
bel
2022-01-17 18:16:23 -07:00
parent e660f2ef9f
commit 73ccc22fd5
9 changed files with 179 additions and 55 deletions

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"io/ioutil"
"local/truckstop/config"
"log"
"local/truckstop/logtr"
"mime/multipart"
"net/http"
"net/url"
@@ -40,7 +40,7 @@ func uploadImage(b []byte) (string, error) {
} else if s, ok := u.Query()["name"]; !ok {
} else {
name = s[0]
log.Printf("found name in upload uri: %s", name)
logtr.Debugf("found name in upload uri: %s", name)
}
part, err := writer.CreateFormFile("image", name)
if err != nil {