Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LogAlwaysIf (0.15 sec)

  1. cmd/logging.go

    }
    
    func peersLogIf(ctx context.Context, err error, errKind ...interface{}) {
    	logger.LogIf(ctx, "peers", err, errKind...)
    }
    
    func peersLogAlwaysIf(ctx context.Context, err error, errKind ...interface{}) {
    	logger.LogAlwaysIf(ctx, "peers", err, errKind...)
    }
    
    func peersLogOnceIf(ctx context.Context, err error, id string, errKind ...interface{}) {
    	logger.LogOnceIf(ctx, "peers", err, id, errKind...)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  2. internal/logger/logger.go

    func HashString(input string) string {
    	hh, _ := highwayhash.New(magicHighwayHash256Key)
    	hh.Write([]byte(input))
    	return hex.EncodeToString(hh.Sum(nil))
    }
    
    // LogAlwaysIf prints a detailed error message during
    // the execution of the server.
    func LogAlwaysIf(ctx context.Context, subsystem string, err error, errKind ...interface{}) {
    	if err == nil {
    		return
    	}
    	logIf(ctx, subsystem, err, errKind...)
    }
    
    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