diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index cf476aa..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/dist/go-glitch_darwin_amd64 b/dist/go-glitch_darwin_amd64 index ca82724..b048b39 100755 Binary files a/dist/go-glitch_darwin_amd64 and b/dist/go-glitch_darwin_amd64 differ diff --git a/dist/go-glitch_darwin_arm64 b/dist/go-glitch_darwin_arm64 index f74128c..771e1ca 100755 Binary files a/dist/go-glitch_darwin_arm64 and b/dist/go-glitch_darwin_arm64 differ diff --git a/dist/go-glitch_linux_amd64 b/dist/go-glitch_linux_amd64 index 50ddcaf..bd822ad 100755 Binary files a/dist/go-glitch_linux_amd64 and b/dist/go-glitch_linux_amd64 differ diff --git a/dist/go-glitch_linux_amd64_static b/dist/go-glitch_linux_amd64_static index c53880f..20bc953 100755 Binary files a/dist/go-glitch_linux_amd64_static and b/dist/go-glitch_linux_amd64_static differ diff --git a/dist/go-glitch_linux_arm64 b/dist/go-glitch_linux_arm64 index 90fd555..39bcbea 100755 Binary files a/dist/go-glitch_linux_arm64 and b/dist/go-glitch_linux_arm64 differ diff --git a/dist/go-glitch_linux_arm64_static b/dist/go-glitch_linux_arm64_static index 3d4f340..235f6f0 100755 Binary files a/dist/go-glitch_linux_arm64_static and b/dist/go-glitch_linux_arm64_static differ diff --git a/dist/go-glitch_windows_amd64 b/dist/go-glitch_windows_amd64 index 3296101..d7bda67 100755 Binary files a/dist/go-glitch_windows_amd64 and b/dist/go-glitch_windows_amd64 differ diff --git a/main.go b/main.go index 0a798a2..27f9dae 100644 --- a/main.go +++ b/main.go @@ -60,11 +60,11 @@ func isInputFromPipe() bool { return fileInfo.Mode()&os.ModeCharDevice == 0 } -// Function to handle sending data to Sentry +// Function to handle sending data to Glitchtip func sendToSentry(logMessage string) { - dsn := os.Getenv("SENTRY_DSN") + dsn := os.Getenv("GLITCHTIP_DSN") if dsn == "" { - fmt.Fprintf(os.Stderr, "Error: SENTRY_DSN environment variable is not set.\n") + fmt.Fprintf(os.Stderr, "Error: GLITCHTIP_DSN environment variable is not set.\n") os.Exit(1) } @@ -72,23 +72,23 @@ func sendToSentry(logMessage string) { Dsn: dsn, }) if err != nil { - fmt.Fprintf(os.Stderr, "Error initializing Sentry: %s\n", err) + fmt.Fprintf(os.Stderr, "Error initializing GlitchTip: %s\n", err) os.Exit(1) } defer func() { success := sentry.Flush(5 * time.Second) if !success { - fmt.Fprintf(os.Stderr, "Failed to flush Sentry buffer within the expected time.\n") + fmt.Fprintf(os.Stderr, "Failed to flush GlitchTip buffer within the expected time.\n") } else { - fmt.Println("Sentry buffer flushed successfully.") + fmt.Println("GlitchTip buffer flushed successfully.") } }() eventID := sentry.CaptureMessage(logMessage) if eventID != nil { - fmt.Printf("Sent message to Sentry with event ID: %s\n", *eventID) + fmt.Printf("Sent message to GlitchTip with event ID: %s\n", *eventID) } else { - fmt.Fprintf(os.Stderr, "Failed to send message to Sentry.\n") + fmt.Fprintf(os.Stderr, "Failed to send message to GlitchTip.\n") } }