mirror of
https://github.com/getsentry/self-hosted.git
synced 2026-02-01 16:32:44 +00:00
Do not send event on INT signal (#1773)
* do not send event on INT signal
This commit is contained in:
parent
3220ed7469
commit
58caa0c7a3
@ -176,7 +176,8 @@ cleanup () {
|
||||
fi
|
||||
echo "$traceback"
|
||||
|
||||
if [ "$REPORT_SELF_HOSTED_ISSUES" == 1 ]; then
|
||||
# Only send event when report issues flag is set and if trap signal is not INT (ctrl+c)
|
||||
if [[ "$REPORT_SELF_HOSTED_ISSUES" == 1 && "$1" != "INT" ]]; then
|
||||
local event_hash=$(echo -n "$cmd_exit $traceback" | docker run -i --rm busybox md5sum | cut -d' ' -f1)
|
||||
send_event "$event_hash" "$cmd_exit"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user