mirror of
https://github.com/40t/go-sniffer.git
synced 2025-08-09 11:36:49 +08:00
format http logs
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user