Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Log (0.13 sec)

  1. cmd/iam.go

    	if isWatcher {
    		go func() {
    			ch := watcher.watch(ctx, iamConfigPrefix)
    			for event := range ch {
    				if err := sys.loadWatchedEvent(ctx, event); err != nil {
    					// we simply log errors
    					iamLogIf(ctx, fmt.Errorf("Failure in loading watch event: %v", err), logger.WarningKind)
    				}
    			}
    		}()
    	}
    
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  2. cmd/api-errors.go

    	},
    
    	// Generic Invalid-Request error. Should be used for response errors only for unlikely
    	// corner case errors for which introducing new APIErrorCode is not worth it. LogIf()
    	// should be used to log the error at the source of the error for debugging purposes.
    	ErrInvalidRequest: {
    		Code:           "InvalidRequest",
    		Description:    "Invalid Request",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  3. cmd/xl-storage.go

    				return nil, errDiskAccessDenied
    			}
    			storageLogOnceIf(GlobalContext, err, "check-format-json") // log unexpected errors
    			return nil, errCorruptedBackend
    		} else if osIsPermission(err) {
    			return nil, errDiskAccessDenied
    		}
    		storageLogOnceIf(GlobalContext, err, "check-format-json") // log unexpected errors
    		return nil, errCorruptedBackend
    	}
    	return fi, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  4. cmd/peer-rest-server.go

    		mask = int(madmin.LogMaskAll)
    	}
    	ch := make(chan log.Info, 1000)
    	err = globalConsoleSys.Subscribe(ch, ctx.Done(), "", 0, madmin.LogMask(mask), nil)
    	if err != nil {
    		return grid.NewRemoteErr(err)
    	}
    	var buf bytes.Buffer
    	enc := json.NewEncoder(&buf)
    	for {
    		select {
    		case entry, ok := <-ch:
    			if !ok {
    				return grid.NewRemoteErrString("console log channel closed")
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  5. cmd/object-api-listobjects_test.go

    		testCase := testCase
    		t.Run(fmt.Sprintf("%s-Test%d", instanceType, i+1), func(t *testing.T) {
    			var err error
    			var resultL ListObjectsInfo
    			var resultV ListObjectVersionsInfo
    			if testCase.versioned {
    				t.Log("ListObjectVersions, bucket:", testCase.bucketName, "prefix:",
    					testCase.prefix, "marker:", testCase.marker, "delimiter:",
    					testCase.delimiter, "maxkeys:", testCase.maxKeys)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  6. cmd/storage-datatypes_gen_test.go

    			b.Fatal(err)
    		}
    	}
    }
    
    func TestEncodeDecodeBaseOptions(t *testing.T) {
    	v := BaseOptions{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeBaseOptions Msgsize() is inaccurate")
    	}
    
    	vn := BaseOptions{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 60.4K bytes
    - Viewed (0)
  7. docs/bucket/notifications/README.md

    If you use NATS server, check out this sample program below to log the bucket notification added to NATS.
    
    ```go
    package main
    
    // Import Go and NATS packages
    import (
     "log"
     "runtime"
    
     "github.com/nats-io/nats.go"
    )
    
    func main() {
    
     // Create server connection
     natsConnection, _ := nats.Connect("nats://yourusername:yoursecret@localhost:4222")
     log.Println("Connected")
    
     // Subscribe to subject
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 84K bytes
    - Viewed (2)
  8. cmd/bucket-handlers.go

    //
    // -- If yes, check if the IP of entry matches local IP.
    //
    //	This means entry is for this instance.
    //
    // -- If IP of the entry doesn't match, this means entry is
    //
    //	for another instance. Log an error to console.
    func initFederatorBackend(buckets []BucketInfo, objLayer ObjectLayer) {
    	if len(buckets) == 0 {
    		return
    	}
    
    	// Get buckets in the DNS
    	dnsBuckets, err := globalDNSConfig.List()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
Back to top