mirror of https://github.com/40t/go-sniffer.git
format http logs
This commit is contained in:
parent
a34893d904
commit
04b5a1faa4
|
@ -59,7 +59,7 @@ func (m *H) ResolveStream(net, transport gopacket.Flow, buf io.Reader) {
|
||||||
msg += req.Form.Encode()
|
msg += req.Form.Encode()
|
||||||
msg += "]"
|
msg += "]"
|
||||||
|
|
||||||
fmt.Printf(time.Now().Format("2006-01-02 15:04:05.000") + " | " + msg)
|
fmt.Println(time.Now().Format("2006-01-02 15:04:05.000") + " | " + msg)
|
||||||
// log.Println()
|
// log.Println()
|
||||||
req.Body.Close()
|
req.Body.Close()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue