mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
debug: print error message on monitor instead of processes pkg
This can catch and print more errors on monitor side not only process-related errors. Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
@ -302,7 +302,11 @@ func (m *monitor) startInvoke(ctx context.Context, pid string, cfg controllerapi
|
||||
go func() {
|
||||
// Start a new invoke
|
||||
if err := m.invoke(ctx, pid, cfg); err != nil {
|
||||
logrus.Debugf("invoke error: %v", err)
|
||||
if errors.Is(err, context.Canceled) {
|
||||
logrus.Debugf("process canceled: %v", err)
|
||||
} else {
|
||||
logrus.Errorf("invoke: %v", err)
|
||||
}
|
||||
}
|
||||
if pid == m.attachedPid.Load() {
|
||||
m.attachedPid.Store("")
|
||||
|
Reference in New Issue
Block a user