INNER CODE UNIT · Go
main
LerianStudio/midaz · scripts/analyze_accepted/main.go:216
func main() {
acceptedPath := flag.String("accepted", "", "path to accepted sample file")
logPath := flag.String("log", "", "path to container log file")
outPath := flag.String("out", "", "path to write correlation summary")
transURL := flag.String("trans", getenv("TRANSACTION_URL", "http://localhost:3001"), "transaction base URL")
auth := flag.String("auth", getenv("TEST_AUTH_HEADER", ""), "Authorization header value")
flag.Parse()
if *acceptedPath == "" || *logPath == "" || *outPath == "" {
fmt.Fprintf(os.Stderr, "usage: analyze_accepted -accepted <file> -log <file> -out <file> [-trans URL] [-auth TOKEN]\n")
os.Exit(2)
}
logBytes, err := os.ReadFile(*logPath)
if err != nil {
panic(err)
}