diff --git a/logs.go b/logs.go index 9140cb8..4f31d99 100644 --- a/logs.go +++ b/logs.go @@ -21,6 +21,9 @@ func (s *OpenVpnMgt) Log(c *vpnSession) error { log.Println(err) } } + + c.Time = time.Now().Round(time.Second) + jsonStr, err := json.Marshal(c) if err != nil { return err