mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-08-13 15:43:47 -04:00
13 lines
412 B
Diff
13 lines
412 B
Diff
--- a/webhook-2.6.8/webhook.go 2018-04-24 22:46:10.468519981 -0400
|
|
+++ b/webhook-2.6.8/webhook.go 2018-04-24 22:46:57.695524146 -0400
|
|
@@ -202,7 +202,8 @@
|
|
func hookHandler(w http.ResponseWriter, r *http.Request) {
|
|
|
|
// generate a request id for logging
|
|
- rid := uuid.NewV4().String()[:6]
|
|
+ u,_ := uuid.NewV4()
|
|
+ rid := u.String()[:6]
|
|
|
|
log.Printf("[%s] incoming HTTP request from %s\n", rid, r.RemoteAddr)
|
|
|