Skip to content

Commit 338e42f

Browse files
authored
add feedback in image build and workload control (#76)
1 parent cd84b32 commit 338e42f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cmd/image/build.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ func (o *buildImageOptions) run(ctx context.Context) error {
7070
}
7171
}
7272
}
73+
logrus.Infof("build image %s complete", o.opts.Name)
7374
return nil
7475
}
7576

cmd/workload/control.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import (
55
"fmt"
66
"io"
77

8+
"github.com/sirupsen/logrus"
9+
"github.com/urfave/cli/v2"
10+
811
"github.com/projecteru2/cli/cmd/utils"
912
corecluster "github.com/projecteru2/core/cluster"
1013
corepb "github.com/projecteru2/core/rpc/gen"
1114
coreutils "github.com/projecteru2/core/utils"
12-
13-
"github.com/sirupsen/logrus"
14-
"github.com/urfave/cli/v2"
1515
)
1616

1717
type controlWorkloadsOptions struct {
@@ -40,7 +40,7 @@ func (o *controlWorkloadsOptions) run(ctx context.Context) error {
4040
return err
4141
}
4242

43-
logrus.Infof("[ControlWorkload] %s", coreutils.ShortID(msg.Id))
43+
logrus.Infof("[ControlWorkload] %s %s", o.action, coreutils.ShortID(msg.Id))
4444
if msg.Hook != nil {
4545
logrus.Infof("[ControlWorkload] HookOutput %s", string(msg.Hook))
4646
}

0 commit comments

Comments
 (0)