Skip to content

Commit

Permalink
GOCBC-284: Enable threshold logger by default.
Browse files Browse the repository at this point in the history
Change-Id: I86a56a8ee2384c6f55b9605a27c8da958be3a898
Reviewed-on: http://review.couchbase.org/96950
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Charles Dixon <chvckd@gmail.com>
  • Loading branch information
chvck committed Jul 17, 2018
1 parent 89b0e69 commit 571af9d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,20 @@ func Connect(connSpecStr string) (*Cluster, error) {
UseDurations: true,
NoRootTraceSpans: true,
UseCompression: true,
UseZombieLogger: true,
}
err = config.FromConnStr(connSpecStr)
if err != nil {
return nil, err
}

useTracing := false
useTracing := true
if valStr, ok := fetchOption("operation_tracing"); ok {
val, err := strconv.ParseBool(valStr)
if err != nil {
return nil, fmt.Errorf("operation_tracing option must be a boolean")
}
if val {
useTracing = true
}
useTracing = val
}

var initialTracer opentracing.Tracer
Expand Down

0 comments on commit 571af9d

Please sign in to comment.