Skip to content

Commit 31fa27b

Browse files
Cody RoseboroughIRCody
authored andcommitted
Remove vm metadata from debug logs
The vm metadata is potentially sensitive and we don't want to log it. Signed-off-by: Cody Roseborough <[email protected]>
1 parent a029876 commit 31fa27b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firecracker-control/service.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ func (s *service) GetVMInfo(ctx context.Context, req *proto.GetVMInfoRequest) (*
8383
}
8484

8585
func (s *service) SetVMMetadata(ctx context.Context, req *proto.SetVMMetadataRequest) (*empty.Empty, error) {
86-
log.G(ctx).Debugf("set vm metadata: %+v", req)
86+
log.G(ctx).Debug("Setting vm metadata")
8787
return s.local.SetVMMetadata(ctx, req)
8888
}
8989

9090
func (s *service) UpdateVMMetadata(ctx context.Context, req *proto.UpdateVMMetadataRequest) (*empty.Empty, error) {
91-
log.G(ctx).Debugf("update vm metadata: %+v", req)
91+
log.G(ctx).Debug("Updating vm metadata")
9292
return s.local.UpdateVMMetadata(ctx, req)
9393
}
9494

9595
func (s *service) GetVMMetadata(ctx context.Context, req *proto.GetVMMetadataRequest) (*proto.GetVMMetadataResponse, error) {
96-
log.G(ctx).Debugf("get vm metadata: %+v", req)
96+
log.G(ctx).Debug("Getting vm metadata")
9797
return s.local.GetVMMetadata(ctx, req)
9898
}

0 commit comments

Comments
 (0)