mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
add tracing logging content if trace id is available in context for package gcmd
This commit is contained in:
@ -58,7 +58,7 @@ func (c *Command) RunWithValue(ctx context.Context) (value interface{}) {
|
||||
fmt.Println(buffer.String())
|
||||
os.Exit(1)
|
||||
}
|
||||
glog.Fatal(ctx, buffer.String())
|
||||
glog.Stack(false).Fatal(ctx, buffer.String())
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user