mirror of
https://github.com/minio/minio.git
synced 2024-12-26 23:25:54 -05:00
Merge pull request #801 from abperiasamy/omitjson
skip Env in json printinf if empty
This commit is contained in:
commit
f223c8b36d
@ -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…
Reference in New Issue
Block a user