Fix Context Values are not logged.
Only the Sentry hook uses the values of the passed context. Therefore, we removed the values from our log statements when we shifted them from an extra `WithField` call to the context. We fix this behavior by introducing a Logrus Hook that copies a fixed set of context values to the logging data.
This commit is contained in:
@ -26,7 +26,7 @@ const (
|
||||
// runnerContextKey is the key used to store runners in context.Context.
|
||||
runnerContextKey dto.ContextKey = "runner"
|
||||
// destroyReasonContextKey is the key used to store the reason of the destruction in the context.Context.
|
||||
destroyReasonContextKey dto.ContextKey = "destroyReason"
|
||||
destroyReasonContextKey dto.ContextKey = dto.KeyRunnerDestroyReason
|
||||
// SIGQUIT is the character that causes a tty to send the SIGQUIT signal to the controlled process.
|
||||
SIGQUIT = 0x1c
|
||||
// executionTimeoutGracePeriod is the time to wait after sending a SIGQUIT signal to a timed out execution.
|
||||
|
Reference in New Issue
Block a user