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:

committed by
Sebastian Serth

parent
1663008eb6
commit
40a5f2eca6
@ -11,8 +11,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
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 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.
|
// Format Parameters: 1. Debug Comment, 2. command.
|
||||||
timeDebugMessageFormatStart = timeDebugMessageFormat + `; %s`
|
timeDebugMessageFormatStart = timeDebugMessageFormat + `; %s`
|
||||||
// Format Parameters: 1. command, 2. Debug Comment.
|
// Format Parameters: 1. command, 2. Debug Comment.
|
||||||
|
Reference in New Issue
Block a user