Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for dumpStack (0.51 sec)

  1. pkg/log/zapcore_handler.go

    }
    
    // callerSkipOffset is how many callers to pop off the stack to determine the caller function locality, used for
    // adding file/line number to log output.
    const callerSkipOffset = 3
    
    func dumpStack(level zapcore.Level, scope *Scope) bool {
    	thresh := toLevel[level]
    	if scope != defaultScope {
    		thresh = ErrorLevel
    		switch level {
    		case zapcore.FatalLevel:
    			thresh = FatalLevel
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 29 01:05:12 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/runtime/trace_cgo_test.go

    		t.Fatalf("could not find log with category: %q", category)
    	} else if len(candidates) > 1 {
    		t.Fatalf("found more than one log with category: %q", category)
    	}
    	return candidates[0]
    }
    
    // dumpStack returns e.Stack() as a string.
    func dumpStackV2(e *trace.Event) string {
    	var buf bytes.Buffer
    	e.Stack().Frames(func(f trace.StackFrame) bool {
    		file := strings.TrimPrefix(f.File, runtime.GOROOT())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. pkg/log/scope.go

    		Level:      level,
    		Time:       t,
    		LoggerName: s.nameToEmit,
    	}
    
    	if s.GetLogCallers() {
    		e.Caller = zapcore.NewEntryCaller(runtime.Caller(s.callerSkip + callerSkipOffset))
    	}
    
    	if dumpStack(level, s) {
    		e.Stack = zap.Stack("").String
    	}
    
    	var fields []zapcore.Field
    	if useJSON.Load().(bool) {
    		fields = make([]zapcore.Field, 0, len(s.labelKeys))
    		for _, k := range s.labelKeys {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 16:47:01 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResult.java

        // at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:145)
        // and with module names:
        // at java.base/java.lang.Thread.dumpStack(Thread.java:1383)
        static final Pattern STACK_TRACE_ELEMENT = Pattern.compile("\\s+(at\\s+)?([\\w.$_]+/)?[a-zA-Z_][\\w.$]+\\.[\\w$_ =+'-<>]+\\(.+?\\)(\\x1B\\[0K)?");
        private static final String TASK_PREFIX = "> Task ";
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top