INNER CODE UNIT · Go

abort

werf/nelm · cmd/nelm/main.go:25

func abort(ctx context.Context, err error, exitCode int) {
	log.Default.WarnPop(ctx, "final")
	log.Default.Error(ctx, "Error: %s", err)
	os.Exit(exitCode)
}

func periodicStackTraces() {
	go func() {
		for {
			buf := make([]byte, 1<<20)
			runtime.Stack(buf, true)
			fmt.Printf("%s", buf)

			time.Sleep(time.Second * time.Duration(10))
		}
	}()
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…