Skip to content

Commit

Permalink
add default values for --trace
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Feb 4, 2021
1 parent 1b8a9a1 commit f29f267
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func (b *Backend) healthCheck() {
b.Stats.DowntimeStart = time.Time{}
b.setOnline()
}
if globalTrace == "all" || globalTrace == "minio" {
if globalTrace != "application" {
if resp != nil {
httpInternalTrace(req, resp, reqTime, respTime, b)
}
Expand Down Expand Up @@ -683,6 +683,7 @@ func main() {
cli.StringFlag{
Name: "trace, t",
Usage: "enable request tracing - valid values are [all,application,minio]",
Value: "all",
},
cli.BoolFlag{
Name: "quiet, q",
Expand Down

0 comments on commit f29f267

Please sign in to comment.