Insert debug message into execution tracing

to verify that the date command is sometimes returning an empty string with exit code 5.
This commit is contained in:
Maximilian Paß
2023-07-21 12:09:51 +01:00
committed by Sebastian Serth
parent 1663008eb6
commit 40a5f2eca6

View File

@ -11,8 +11,10 @@ import (
)
var (
// debugTimeDebugMessageFormat adds additional information for debugging the bug #325.
debugTimeDebugMessageFormat = ` || (echo -n \"\$? \"; ps aux)`
// timeDebugMessageFormat is the format of messages that will be converted to debug messages.
timeDebugMessageFormat = `echo -ne "\x1EPoseidon %s $(date +%%s%%3N)\x1E"`
timeDebugMessageFormat = `echo -ne "\x1EPoseidon %s $(date +%%s%%3N` + debugTimeDebugMessageFormat + `)\x1E"`
// Format Parameters: 1. Debug Comment, 2. command.
timeDebugMessageFormatStart = timeDebugMessageFormat + `; %s`
// Format Parameters: 1. command, 2. Debug Comment.