Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ConsoleLog (0.07 sec)

  1. internal/logger/console.go

    	if DisableLog {
    		return
    	}
    	consoleLog(errorMessage, msg, data...)
    }
    
    // Info :
    func Info(msg string, data ...interface{}) {
    	if DisableLog {
    		return
    	}
    	consoleLog(info, msg, data...)
    }
    
    // Startup :
    func Startup(msg string, data ...interface{}) {
    	if DisableLog {
    		return
    	}
    	consoleLog(startup, msg, data...)
    }
    
    type startupMsg struct{}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. cmd/peer-rest-client.go

    		select {
    		case logCh <- *b:
    		default:
    			consoleLogRPC.PutResponse(b)
    			// Do not block on slow receivers.
    		}
    		return nil
    	})
    }
    
    // ConsoleLog - sends request to peer nodes to get console logs
    func (client *peerRESTClient) ConsoleLog(ctx context.Context, kind madmin.LogMask, logCh chan<- []byte) {
    	go func() {
    		for {
    			client.doConsoleLog(ctx, kind, logCh)
    			select {
    			case <-ctx.Done():
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. cmd/peer-rest-server.go

    	cleanupUploadIDCacheMetaRPC    = grid.NewSingleHandler[*grid.MSS, grid.NoPayload](grid.HandlerClearUploadID, grid.NewMSS, grid.NewNoPayload)
    
    	// STREAMS
    	// Set an output capacity of 100 for consoleLog and listenRPC
    	// There is another buffer that will buffer events.
    	consoleLogRPC = grid.NewStream[*grid.MSS, grid.NoPayload, *grid.Bytes](grid.HandlerConsoleLog, grid.NewMSS, nil, grid.NewBytes).WithOutCapacity(100)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  4. cmd/admin-handlers.go

    			}
    		}
    	}()
    
    	// Collect from matching peers
    	for _, peer := range peers {
    		if peer == nil {
    			continue
    		}
    		if node == "" || strings.EqualFold(peer.host.Name, node) {
    			peer.ConsoleLog(ctx, logKind, encodedCh)
    		}
    	}
    
    	keepAliveTicker := time.NewTicker(500 * time.Millisecond)
    	defer keepAliveTicker.Stop()
    	for {
    		select {
    		case log, ok := <-encodedCh:
    			if !ok {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top