log env
This commit is contained in:
		
							
								
								
									
										1
									
								
								util.go
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								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"), | ||||
|  | ||||
		Reference in New Issue
	
	Block a user