Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for LogIf (0.17 sec)

  1. cmd/logging.go

    	logger.LogOnceIf(ctx, "kms", err, id, errKind...)
    }
    
    // LogIf is the implementation of LogIf, accessible using the Logger interface
    func (l KMSLogger) LogIf(ctx context.Context, err error, errKind ...interface{}) {
    	logger.LogIf(ctx, "kms", err, errKind...)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  2. internal/logger/logger.go

    	if err == nil {
    		return
    	}
    	logIf(ctx, subsystem, err, errKind...)
    }
    
    // LogIf prints a detailed error message during
    // the execution of the server, if it is not an
    // ignored error.
    func LogIf(ctx context.Context, subsystem string, err error, errKind ...interface{}) {
    	if logIgnoreError(err) {
    		return
    	}
    	logIf(ctx, subsystem, err, errKind...)
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  3. cmd/tier-sweeper.go

    //	   os.SetTransitionState(goi)
    //	}
    //
    // // After the overwriting object operation is complete.
    //
    //	if jentry, ok := os.ShouldRemoveRemoteObject(); ok {
    //	    err := globalTierJournal.AddEntry(jentry)
    //	    logger.LogIf(ctx, err)
    //	}
    type objSweeper struct {
    	Object              string
    	Bucket              string
    	VersionID           string // version ID set by application, applies only to DeleteObject and DeleteObjects APIs
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  4. internal/logger/reqinfo.go

    	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
    	}
    	return context.WithValue(ctx, contextLogKey, req)
    }
    
    // GetReqInfo returns ReqInfo if set.
    func GetReqInfo(ctx context.Context) *ReqInfo {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  5. internal/logger/audit.go

    )
    
    const contextAuditKey = contextKeyType("audit-entry")
    
    // SetAuditEntry sets Audit info in the context.
    func SetAuditEntry(ctx context.Context, audit *audit.Entry) context.Context {
    	if ctx == nil {
    		LogIf(context.Background(), "audit", fmt.Errorf("context is nil"))
    		return nil
    	}
    	return context.WithValue(ctx, contextAuditKey, audit)
    }
    
    // GetAuditEntry returns Audit entry if set.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  6. 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 {
    		logIf(ctx, subsystem, err, errKind...)
    	}
    }
    
    // Cleanup the map every one hour so that the log message is printed again for the user to notice.
    func (l *logOnceType) cleanupRoutine() {
    	for {
    		time.Sleep(time.Hour)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. internal/kms/kes.go

    	}
    	return results
    }
    
    // Logger interface permits access to module specific logging, in this case, for KMS
    type Logger interface {
    	LogOnceIf(ctx context.Context, err error, id string, errKind ...interface{})
    	LogIf(ctx context.Context, err error, errKind ...interface{})
    }
    
    // RefreshKey checks the validity of the KMS Master Key
    func (c *kesClient) RefreshKey(ctx context.Context, logger Logger) bool {
    	c.lock.RLock()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  8. internal/bucket/object/lock/lock.go

    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/env"
    )
    
    const (
    	logSubsys = "locking"
    )
    
    func lockLogIf(ctx context.Context, err error) {
    	logger.LogIf(ctx, logSubsys, err)
    }
    
    // Enabled indicates object locking is enabled
    const Enabled = "Enabled"
    
    // RetMode - object retention mode.
    type RetMode string
    
    const (
    	// RetGovernance - governance mode.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  9. internal/hash/checksum.go

    	"strings"
    
    	"github.com/minio/minio/internal/hash/sha256"
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/logger"
    )
    
    func hashLogIf(ctx context.Context, err error) {
    	logger.LogIf(ctx, "hash", err)
    }
    
    // MinIOMultipartChecksum is as metadata on multipart uploads to indicate checksum type.
    const MinIOMultipartChecksum = "x-minio-multipart-checksum"
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  10. internal/config/identity/plugin/config.go

    	"github.com/minio/minio/internal/config"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/env"
    	xnet "github.com/minio/pkg/v2/net"
    )
    
    func authNLogIf(ctx context.Context, err error) {
    	logger.LogIf(ctx, "authN", err)
    }
    
    // Authentication Plugin config and env variables
    const (
    	URL        = "url"
    	AuthToken  = "auth_token"
    	RolePolicy = "role_policy"
    	RoleID     = "role_id"
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.3K bytes
    - Viewed (3)
Back to top