|
@@ -59,7 +59,8 @@ report_to_sentry() {
|
|
|
curl -sL https://sentry.io/get-cli/ | bash
|
|
|
fi
|
|
|
# Report to sentry-dev-env project
|
|
|
- sentry-cli send-event -m "$error_message" --logfile "$_SENTRY_LOG_FILE" --level $log_level
|
|
|
+ SENTRY_DSN="https://9bdb053cb8274ea69231834d1edeec4c@o1.ingest.sentry.io/5723503" \
|
|
|
+ sentry-cli send-event -m "$error_message" --logfile "$_SENTRY_LOG_FILE" --level $log_level
|
|
|
rm "$_SENTRY_LOG_FILE"
|
|
|
}
|
|
|
|
|
@@ -142,8 +143,6 @@ fi
|
|
|
if [ -n "${SENTRY_DEVENV_NO_REPORT+x}" ]; then
|
|
|
debug "No development environment errors will be reported (since you've defined SENTRY_DEVENV_NO_REPORT)."
|
|
|
else
|
|
|
- # This is necessary for the bash-hook in lib.sh to work
|
|
|
- export SENTRY_DSN="https://9bdb053cb8274ea69231834d1edeec4c@o1.ingest.sentry.io/5723503"
|
|
|
# Since direnv traps the EXIT signal we place the temp file under /tmp for the odd time
|
|
|
# the script will use the EXIT path
|
|
|
_SENTRY_LOG_FILE=$(mktemp /tmp/sentry.envrc.$$.out || mktemp /tmp/sentry.envrc.XXXXXXXX.out)
|