Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for consoleLogIf (0.31 sec)

  1. internal/logger/logonce.go

    			Count: 1,
    		}
    	} else if prev.Err.Error() == nerr.Error() {
    		// if errors are equal do not log.
    		prev.Count++
    		l.IDMap[id] = prev
    		shouldLog = false
    	}
    	l.Unlock()
    
    	if shouldLog {
    		consoleLogIf(ctx, subsystem, err, errKind...)
    	}
    }
    
    const unwrapErrsDepth = 3
    
    // unwrapErrs upto the point where errors.Unwrap(err) returns nil
    func unwrapErrs(err error) (leafErr error) {
    	uerr := errors.Unwrap(err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. internal/logger/logger.go

    		if entry.Trace != nil {
    			entry.Trace.Variables = make(map[string]interface{})
    		}
    	}
    
    	return entry
    }
    
    // consoleLogIf prints a detailed error message during
    // the execution of the server.
    func consoleLogIf(ctx context.Context, subsystem string, err error, errKind ...interface{}) {
    	if DisableErrorLog {
    		return
    	}
    	if err == nil {
    		return
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
Back to top