Skip to content

Commit 6a10618

Browse files
committed
Debug
1 parent 8e3e85d commit 6a10618

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/server/http/handler.go

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"log"
66
"net/http"
77
"os"
8+
"path/filepath"
89
"time"
910
)
1011

@@ -42,6 +43,7 @@ func writeBody(i Imposter, r Response, w http.ResponseWriter) {
4243
}
4344

4445
func fetchBodyFromFile(bodyFile string) (bytes []byte) {
46+
log.Printf(filepath.Abs(bodyFile))
4547
if _, err := os.Stat(bodyFile); os.IsNotExist(err) {
4648
log.Printf("the body file %s not found\n", bodyFile)
4749
return

0 commit comments

Comments
 (0)