Skip to content

Commit

Permalink
Tweak stack trace.
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Littley <cody@eigenlabs.org>
  • Loading branch information
cody-littley committed Jan 2, 2025
1 parent a57140c commit 11e2ffa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions inabox/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"math/big"
"os"
"path/filepath"
"runtime/debug"
"runtime"
"strconv"

"github.com/Layr-Labs/eigenda/common"
Expand Down Expand Up @@ -157,8 +157,10 @@ func (env *Config) DeployExperiment() {
}

// TODO remove
debug.PrintStack()
log.Print(debug.Stack())
b := make([]byte, 2048) // adjust buffer size to be larger than expected stack
n := runtime.Stack(b, false)
s := string(b[:n])
log.Printf("Stack trace:\n %s", s)

fmt.Println("Generating variables")
env.GenerateAllVariables()
Expand Down

0 comments on commit 11e2ffa

Please sign in to comment.