Skip to content

Commit aec0bf9

Browse files
authored
fix: print DeleteNetworkContainerRequestBody correctly in log (#1896)
* fix: print DeleteNetworkContainerRequestBody correctly in log * align String() with others
1 parent 7546aac commit aec0bf9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cns/NetworkContainerContract.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,11 @@ type UnpublishNetworkContainerRequest struct {
549549
DeleteNetworkContainerRequestBody []byte
550550
}
551551

552+
func (u UnpublishNetworkContainerRequest) String() string {
553+
return fmt.Sprintf("{NetworkID:%s NetworkContainerID:%s JoinNetworkURL:%s DeleteNetworkContainerURL:%s DeleteNetworkContainerRequestBody:%q}",
554+
u.NetworkID, u.NetworkContainerID, u.JoinNetworkURL, u.DeleteNetworkContainerURL, u.DeleteNetworkContainerRequestBody)
555+
}
556+
552557
// UnpublishNetworkContainerResponse specifies the response to unpublish network container request.
553558
type UnpublishNetworkContainerResponse struct {
554559
Response Response

0 commit comments

Comments
 (0)