Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for SetReqInfo (0.38 sec)

  1. internal/logger/reqinfo.go

    		return
    	}
    	if tagsMap == nil {
    		return
    	}
    	r.RLock()
    	defer r.RUnlock()
    	for _, t := range r.tags {
    		tagsMap[t.Key] = t.Val
    	}
    	return
    }
    
    // SetReqInfo sets ReqInfo in the context.
    func SetReqInfo(ctx context.Context, req *ReqInfo) context.Context {
    	if ctx == nil {
    		LogIf(context.Background(), "", fmt.Errorf("context is nil"))
    		return nil
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. cmd/notification.go

    					retryCount = 0
    				}
    
    				// Last iteration log the error.
    				if i == retryCount-1 {
    					reqInfo := (&logger.ReqInfo{}).AppendTags("peerAddress", addr.String())
    					ctx := logger.SetReqInfo(ctx, reqInfo)
    					peersLogOnceIf(ctx, err, addr.String())
    				}
    
    				// Wait for a minimum of 100ms and dynamically increase this based on number of attempts.
    				if i < retryCount-1 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  3. internal/event/targetlist.go

    			if err := target.Save(event); err != nil {
    				list.eventsErrorsTotal.Add(1)
    				list.incFailedEvents(id)
    				reqInfo := &logger.ReqInfo{}
    				reqInfo.AppendTags("targetID", id.String())
    				logger.LogOnceIf(logger.SetReqInfo(context.Background(), reqInfo), logSubsys, err, id.String())
    			}
    		}(id, target)
    	}
    	wg.Wait()
    	list.totalEvents.Add(1)
    }
    
    func (list *TargetList) sendAsync(event Event, targetIDset TargetIDSet) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. cmd/endpoint.go

    					if timeElapsed > time.Second {
    						reqInfo.AppendTags("elapsedTime",
    							humanize.RelTime(startTime,
    								startTime.Add(timeElapsed),
    								"elapsed",
    								"",
    							))
    						ctx := logger.SetReqInfo(GlobalContext,
    							reqInfo)
    						bootLogOnceIf(ctx, fmt.Errorf("%s resolves to localhost in a containerized deployment, waiting for it to resolve to a valid IP",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  5. cmd/prepare-storage.go

    	var mutex sync.Mutex
    	printOnce := make(map[Endpoint]map[string]int)
    
    	return func(endpoint Endpoint, err error, once bool) {
    		reqInfo := (&logger.ReqInfo{}).AppendTags("endpoint", endpoint.String())
    		ctx := logger.SetReqInfo(GlobalContext, reqInfo)
    		mutex.Lock()
    		defer mutex.Unlock()
    
    		m, ok := printOnce[endpoint]
    		if !ok {
    			m = make(map[string]int)
    			printOnce[endpoint] = m
    			if once {
    				m[err.Error()]++
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 11.1K bytes
    - Viewed (1)
  6. cmd/global-heal.go

    // operation which scans all objects and heal them.
    func newBgHealSequence() *healSequence {
    	reqInfo := &logger.ReqInfo{API: "BackgroundHeal"}
    	ctx, cancelCtx := context.WithCancel(logger.SetReqInfo(GlobalContext, reqInfo))
    
    	hs := madmin.HealOpts{
    		// Remove objects that do not have read-quorum
    		Remove: healDeleteDangling,
    	}
    
    	return &healSequence{
    		startTime:   UTCNow(),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. cmd/utils.go

    		for _, ov := range objects {
    			req.Objects = append(req.Objects, logger.ObjectVersion{
    				ObjectName: ov.ObjectName,
    				VersionID:  ov.VersionID,
    			})
    		}
    		return logger.SetReqInfo(ctx, req)
    	}
    	return ctx
    }
    
    // Returns context with ReqInfo details set in the context.
    func newContext(r *http.Request, w http.ResponseWriter, api string) context.Context {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-decom.go

    				fn(*entry)
    			}
    		},
    		finished: nil,
    	})
    	return err
    }
    
    func (z *erasureServerPools) decommissionPool(ctx context.Context, idx int, pool *erasureSets, bi decomBucketInfo) error {
    	ctx = logger.SetReqInfo(ctx, &logger.ReqInfo{})
    
    	const envDecomWorkers = "_MINIO_DECOMMISSION_WORKERS"
    	workerSize, err := env.GetInt(envDecomWorkers, len(pool.sets))
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  9. cmd/update.go

    		// Log errors and return "" as MinIO can be deployed
    		// without Helm charts as well.
    		if !osIsNotExist(err) {
    			reqInfo := (&logger.ReqInfo{}).AppendTags("helmInfoFilePath", helmInfoFilePath)
    			ctx := logger.SetReqInfo(GlobalContext, reqInfo)
    			internalLogIf(ctx, err)
    		}
    		return ""
    	}
    	defer helmInfoFile.Close()
    	scanner := bufio.NewScanner(helmInfoFile)
    	for scanner.Scan() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool.go

    		}
    	}
    
    	// Check if disks are healing on in-case of VMware vsphere deployments.
    	if opts.Maintenance && opts.DeploymentType == vmware {
    		if drivesHealing > 0 {
    			healingLogIf(logger.SetReqInfo(ctx, reqInfo), fmt.Errorf("Total drives to be healed %d", drivesHealing))
    		}
    	}
    
    	var usingDefaults bool
    	if globalStorageClass.GetParityForSC(storageclass.STANDARD) < 0 {
    		usingDefaults = true
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
Back to top