aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/server.go b/server.go
index c61ad7f..309ac34 100644
--- a/server.go
+++ b/server.go
@@ -65,7 +65,7 @@ func checkTokenAndLog(handler http.Handler) http.Handler {
return
}
- log.Printf("%s %s %s\n", r.RemoteAddr, r.Method, r.URL)
+ log.Printf("%s %s %s\n", r.RemoteAddr, r.Method, strings.Split(r.URL, "?")[0])
handler.ServeHTTP(w, r)
})
}
@@ -80,7 +80,8 @@ func handleTxn(w http.ResponseWriter, r *http.Request) {
return
}
- log.Debugf("Got transaction %#v\n", txn)
+ log.Debugf("Processing transaction %s (%d events)", mux.Vars(r)["txnId"], len(txn.Events))
+ log.Tracef("Transaction content: %#v\n", txn)
for i := range txn.Events {
ev := &txn.Events[i]