Skip to content

Commit e57e4f2

Browse files
committed
update
1 parent 28318e4 commit e57e4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log/trace.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func maketraceid() string {
9999
}
100100

101101
func Trace(ctx context.Context, role ROLE, toapp, toip, tomethod, topath string, start, end *time.Time, e error) {
102-
if target == 0 {
102+
if !trace {
103103
return
104104
}
105105
traceid, fromapp, fromip, frommethod, frompath, deep := GetTrace(ctx)

0 commit comments

Comments
 (0)