Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log File Options #1129

Merged
merged 4 commits into from
Sep 6, 2023
Merged

Log File Options #1129

merged 4 commits into from
Sep 6, 2023

Conversation

moshe-blox
Copy link
Contributor

No description provided.

y0sher
y0sher previously approved these changes Sep 4, 2023
Comment on lines 1 to 17
package utils

import (
"os"
"path/filepath"
"runtime"
)

var DebugDataDir = ""

func FullGoroutineStackDump() error {
buffer := make([]byte, 128*1024*1024)
length := runtime.Stack(buffer, true)

fileName := filepath.Join(DebugDataDir, "full-goroutine-stack-dump.txt")
return os.WriteFile(fileName, buffer[:length], 0600)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@moshe-blox this not used here and not related to this PR, do we still want it here for some reason?

Copy link
Contributor Author

@moshe-blox moshe-blox Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yeah i gave up on this
removed now

@moshe-blox moshe-blox merged commit 1b2d306 into stage Sep 6, 2023
5 checks passed
@moshe-blox moshe-blox deleted the log-file-options branch September 6, 2023 10:59
y0sher pushed a commit that referenced this pull request Sep 20, 2023
* Log File Options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants