mirror of
https://github.com/40t/go-sniffer.git
synced 2025-08-09 18:07:19 +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 += "]"
|
||||
|
||||
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()
|
||||
req.Body.Close()
|
||||
}
|
||||
|
Reference in New Issue
Block a user