Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
joanlopez committed Nov 10, 2024
1 parent 8e3e85d commit 6a10618
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/server/http/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"log"
"net/http"
"os"
"path/filepath"
"time"
)

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

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

0 comments on commit 6a10618

Please sign in to comment.