add tracing logging content if trace id is available in context for package gcmd

This commit is contained in:
John Guo
2022-06-17 17:42:49 +08:00
parent b2b2044786
commit 1e8237446e

View File

@ -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
}