Skip to content

Commit 384edfe

Browse files
committed
change log output in virt
1 parent 5ec30b7 commit 384edfe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

engine/virt/virt.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ func (v *Virt) Info(ctx context.Context) (*enginetypes.Info, error) {
7575

7676
// Execute executes a command in vm
7777
func (v *Virt) Execute(ctx context.Context, ID string, config *enginetypes.ExecConfig) (pid string, stdout, stderr io.ReadCloser, stdin io.WriteCloser, err error) {
78-
log.Debugf(ctx, "execute opts on %s: %v", ID, config)
79-
defer log.Debugf(ctx, "execute opts done")
8078
if config.Tty {
8179
flags := virttypes.AttachGuestFlags{Safe: true, Force: true}
8280
stream, err := v.client.AttachGuest(ctx, ID, config.Cmd, flags)
@@ -155,7 +153,7 @@ func (v *Virt) NetworkList(ctx context.Context, drivers []string) (nets []*engin
155153

156154
// BuildRefs builds references, it's not necessary for virt. presently.
157155
func (v *Virt) BuildRefs(ctx context.Context, name string, tags []string) (refs []string) {
158-
log.Warnf(ctx, "BuildRefs does not implement")
156+
log.Warn(ctx, "BuildRefs does not implement")
159157
return
160158
}
161159

@@ -195,7 +193,7 @@ func (v *Virt) VirtualizationCreate(ctx context.Context, opts *enginetypes.Virtu
195193
// VirtualizationResourceRemap .
196194
func (v *Virt) VirtualizationResourceRemap(ctx context.Context, opts *enginetypes.VirtualizationRemapOptions) (<-chan enginetypes.VirtualizationRemapMessage, error) {
197195
// VM does not support binding cores.
198-
log.Debugf(ctx, "virtualizationResourceRemap is not supported by vm")
196+
log.Warn(ctx, "virtualizationResourceRemap is not supported by vm")
199197
ch := make(chan enginetypes.VirtualizationRemapMessage)
200198
defer close(ch)
201199
return ch, nil

0 commit comments

Comments
 (0)