diff --git a/util.go b/util.go index 918a864..b88b30b 100644 --- a/util.go +++ b/util.go @@ -42,6 +42,7 @@ func getStrVal(ctx context.Context, key string) string { func NewLogData(ctx context.Context, logType string, code string, logData map[string]any) *LogData { hostname, _ := os.Hostname() commonLogData := &LogData{ + Env: getStrVal(ctx, "env"), Uri: getStrVal(ctx, "uri"), TraceID: getStrVal(ctx, "trace_id"), UserID: getStrVal(ctx, "user_id"),