debian-forge-composer/cmd/osbuild-worker/export_test.go
Michael Vogt bc7b8355bf worker: report cashes directly to logrus
This is a bit of an RFC commit, I noticed that when we discussed
a crash from the worker we looked at individual message from
syslog/journald for the stacktrace deatils. I was wondering if
having a more direct crash report would be more useful? We can
of course also add more logrus features to flag those with tags
like "crash" or something (I did not do that in this PR, I don't
know much about the operational side, sorry).
2024-11-25 12:02:05 +01:00

15 lines
284 B
Go

package main
var (
WorkerClientErrorFrom = workerClientErrorFrom
MakeJobErrorFromOsbuildOutput = makeJobErrorFromOsbuildOutput
Main = main
)
func MockRun(new func()) (restore func()) {
saved := run
run = new
return func() {
run = saved
}
}