skip Env in json printinf if empty

master
Anand Babu (AB) Periasamy 9 years ago
parent 56c548c133
commit 826202716f
  1. 8
      pkg/probe/probe.go

@ -51,10 +51,10 @@ func GetSysInfo() map[string]string {
} }
type TracePoint struct { type TracePoint struct {
Line int `json:"Line"` Line int `json:"Line,omitempty"`
Filename string `json:"File"` Filename string `json:"File,omitempty"`
Function string `json:"Func"` Function string `json:"Func,omitempty"`
Env map[string][]string `json:"Env"` Env map[string][]string `json:"Env,omitempty"`
} }
// Error implements tracing error functionality. // Error implements tracing error functionality.

Loading…
Cancel
Save