Ensure sending of the Sentry End debug message.

This commit is contained in:
Maximilian Paß
2023-02-26 21:28:30 +00:00
committed by Sebastian Serth
parent 4fb6ab980b
commit f309d0f70e
3 changed files with 27 additions and 4 deletions

View File

@@ -12,11 +12,10 @@ import (
const (
// timeDebugMessageFormat is the format of messages that will be converted to debug messages.
timeDebugMessageFormat = "echo -ne \"\\x1EPoseidon %s $(date +%%s%%3N)\\x1E\""
// Format Parameters: 1. Debug Comment, 2. command.
timeDebugMessageFormatStart = timeDebugMessageFormat + "; %s"
timeDebugMessageFormatStart = `echo -ne "\x1EPoseidon %s $(date +%%s%%3N)\x1E"; %s`
// Format Parameters: 1. command, 2. Debug Comment.
timeDebugMessageFormatEnd = "%s && " + timeDebugMessageFormat
timeDebugMessageFormatEnd = `%s; bash -c "ec=$?; echo -ne \"\\x1EPoseidon %s \$(date +%%s%%3N)\\x1E\" && exit \$ec"`
)
var (