Skip to content

Commit

Permalink
More informative log message
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoras committed Feb 11, 2019
1 parent 759900d commit fec6ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blockwebserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ func blockWebSendBlock(w http.ResponseWriter, r *http.Request) {
return
}

log.Println("Serving block", blockHeight, "to", r.RemoteAddr)
log.Println("HTTP serving block", blockHeight, "to", r.RemoteAddr)
w.Header().Set("Content-Type", "application/x-sqlite3")
w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=\"%08x.db\"", blockHeight))
http.ServeFile(w, r, blockFilename)
// log.Println("Done serving block", blockHeight)
}

func blockWebSendChainParams(w http.ResponseWriter, r *http.Request) {
log.Println("Serving chainparams.json to", r.RemoteAddr)
log.Println("HTTP serving chainparams.json to", r.RemoteAddr)

w.Header().Set("Content-Type", "application/json")
w.Header().Set("Content-Disposition", "attachment; filename=\"chainparams.json\"")
Expand Down

0 comments on commit fec6ad2

Please sign in to comment.