This commit is contained in:
zhangdeman committed 2024-07-24 23:05:55 +08:00
1 parent f2852c8634
commit d6b517ea7a
1 file changed
+1
+1
View File
@@ -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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.