From 1e8237446e183d124b6c321c27056b7d315b560d Mon Sep 17 00:00:00 2001 From: John Guo Date: Fri, 17 Jun 2022 17:42:49 +0800 Subject: [PATCH] add tracing logging content if trace id is available in context for package gcmd --- os/gcmd/gcmd_command_run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/gcmd/gcmd_command_run.go b/os/gcmd/gcmd_command_run.go index a001009b4..1826257b4 100644 --- a/os/gcmd/gcmd_command_run.go +++ b/os/gcmd/gcmd_command_run.go @@ -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 }