Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
server: Print URL to error log
Browse files Browse the repository at this point in the history
close #1053
  • Loading branch information
bakape committed May 1, 2019
1 parent a8b052d commit c57a37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func logError(r *http.Request, err interface{}) {
if ipErr != nil {
ip = "invalid IP"
}
log.Errorf("server: by %s: %s: %#v", ip, err, err)
log.Errorf(`server: ip="%s" url="%s" err="%s"`, ip, r.URL.String(), err)
}

// Text-only 404 response
Expand Down

0 comments on commit c57a37a

Please sign in to comment.