Skip to content

CNS logs bytes when printing HNS Endpoint #3550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pjohnst5 opened this issue Apr 1, 2025 · 3 comments
Open

CNS logs bytes when printing HNS Endpoint #3550

pjohnst5 opened this issue Apr 1, 2025 · 3 comments

Comments

@pjohnst5
Copy link
Contributor

pjohnst5 commented Apr 1, 2025

This line prints bytes.. we should probably stop doing that

logger.Printf("[Azure CNS] Successfully created HostNCApipaEndpoint: %+v", endpoint)

Example:

2025/03/28 10:28:49 [4928] [Azure CNS] Successfully created HostNCApipaEndpoint: &{Id:03668027-f8ba-43e0-9301-3751606d353a Name:HostNCApipaEndpoint-Swift_ad22b58a-5c6f-4432-8756-0d079755d053 HostComputeNetwork:795c031e-7993-4ce1-80ad-6b08691acd1a HostComputeNamespace: Policies:[{Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 49 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 80 114 105 111 114 105 116 121 34 58 50 48 48 48 44 34 65 99 116 105 111 110 34 58 34 66 108 111 99 107 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 79 117 116 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 49 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 82 101 109 111 116 101 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 49 34 44 34 80 114 105 111 114 105 116 121 34 58 49 48 48 48 44 34 65 99 116 105 111 110 34 58 34 65 108 108 111 119 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 79 117 116 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 49 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 80 114 105 111 114 105 116 121 34 58 50 48 48 48 44 34 65 99 116 105 111 110 34 58 34 66 108 111 99 107 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 73 110 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 49 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 82 101 109 111 116 101 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 49 34 44 34 80 114 105 111 114 105 116 121 34 58 49 48 48 48 44 34 65 99 116 105 111 110 34 58 34 65 108 108 111 119 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 73 110 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 54 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 80 114 105 111 114 105 116 121 34 58 50 48 48 48 44 34 65 99 116 105 111 110 34 58 34 66 108 111 99 107 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 79 117 116 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 54 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 82 101 109 111 116 101 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 49 34 44 34 80 114 105 111 114 105 116 121 34 58 49 48 48 48 44 34 65 99 116 105 111 110 34 58 34 65 108 108 111 119 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 79 117 116 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 54 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 80 114 105 111 114 105 116 121 34 58 50 48 48 48 44 34 65 99 116 105 111 110 34 58 34 66 108 111 99 107 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 73 110 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 54 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 82 101 109 111 116 101 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 49 34 44 34 80 114 105 111 114 105 116 121 34 58 49 48 48 48 44 34 65 99 116 105 111 110 34 58 34 65 108 108 111 119 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 73 110 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 49 55 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 80 114 105 111 114 105 116 121 34 58 50 48 48 48 44 34 65 99 116 105 111 110 34 58 34 66 108 111 99 107 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 79 117 116 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 49 55 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 82 101 109 111 116 101 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 49 34 44 34 80 114 105 111 114 105 116 121 34 58 49 48 48 48 44 34 65 99 116 105 111 110 34 58 34 65 108 108 111 119 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 79 117 116 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 49 55 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 80 114 105 111 114 105 116 121 34 58 50 48 48 48 44 34 65 99 116 105 111 110 34 58 34 66 108 111 99 107 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 73 110 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 49 55 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 82 101 109 111 116 101 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 49 34 44 34 80 114 105 111 114 105 116 121 34 58 49 48 48 48 44 34 65 99 116 105 111 110 34 58 34 65 108 108 111 119 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 73 110 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 54 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 82 101 109 111 116 101 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 49 34 44 34 82 101 109 111 116 101 80 111 114 116 115 34 58 34 50 51 55 55 34 44 34 80 114 105 111 114 105 116 121 34 58 49 48 48 44 34 65 99 116 105 111 110 34 58 34 65 108 108 111 119 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 79 117 116 34 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 54 34 44 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 82 101 109 111 116 101 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 49 34 44 34 76 111 99 97 108 80 111 114 116 115 34 58 34 53 48 48 50 34 44 34 80 114 105 111 114 105 116 121 34 58 49 48 49 44 34 65 99 116 105 111 110 34 58 34 65 108 108 111 119 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 73 110 34 125]} {Type:ACL Settings:[123 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 82 101 109 111 116 101 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 49 34 44 34 80 114 105 111 114 105 116 121 34 58 49 56 48 44 34 65 99 116 105 111 110 34 58 34 66 108 111 99 107 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 73 110 34 125]} {Type:ACL Settings:[123 34 76 111 99 97 108 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 54 34 44 34 82 101 109 111 116 101 65 100 100 114 101 115 115 101 115 34 58 34 49 54 57 46 50 53 52 46 49 50 56 46 49 34 44 34 80 114 105 111 114 105 116 121 34 58 49 56 49 44 34 65 99 116 105 111 110 34 58 34 66 108 111 99 107 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 79 117 116 34 125]} {Type:L2Driver Settings:[]} {Type:EncapOverhead Settings:[123 34 79 118 101 114 104 101 97 100 34 58 53 48 125]}] IpConfigurations:[{IpAddress:169.254.128.6 PrefixLength:17}] Dns:{Domain: Search:[] ServerList:[] Options:[]} Routes:[{NextHop:169.254.128.1 DestinationPrefix:0.0.0.0/0 Metric:0}] MacAddress:00-15-5D-E7-DE-A0 Flags:0 Health:{Data:<nil> Extra:{Resources:[123 34 65 100 100 105 116 105 111 110 97 108 80 97 114 97 109 115 34 58 123 125 44 34 65 108 108 111 99 97 116 105 111 110 79 114 100 101 114 34 58 48 44 34 67 111 109 112 97 114 116 109 101 110 116 79 112 101 114 97 116 105 111 110 84 105 109 101 34 58 48 44 34 70 108 97 103 115 34 58 48 44 34 72 101 97 108 116 104 34 58 123 34 76 97 115 116 69 114 114 111 114 67 111 100 101 34 58 48 44 34 76 97 115 116 85 112 100 97 116 101 84 105 109 101 34 58 49 51 51 56 55 54 51 49 51 50 57 51 53 54 50 53 54 54 125 44 34 73 68 34 58 34 50 57 48 65 48 69 56 68 45 49 50 53 54 45 52 67 50 52 45 66 48 67 67 45 52 53 70 67 53 65 55 52 69 69 57 67 34 44 34 80 111 114 116 79 112 101 114 97 116 105 111 110 84 105 109 101 34 58 48 44 34 83 116 97 116 101 34 58 49 44 34 83 119 105 116 99 104 79 112 101 114 97 116 105 111 110 84 105 109 101 34 58 48 44 34 86 102 112 79 112 101 114 97 116 105 111 110 84 105 109 101 34 58 48 44 34 112 97 114 101 110 116 73 100 34 58 34 68 50 66 54 53 53 68 67 45 51 68 70 55 45 52 69 55 70 45 56 51 55 68 45 57 51 54 57 52 57 49 70 55 57 52 57 34 125] 
@rbtr
Copy link
Contributor

rbtr commented Apr 7, 2025

probably could roll up with #3249
@pjohnst5 that PR needs a new owner, can you fix these both (and maybe do a quick scan for other bad uses of %+v)?

Copy link

This issue is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale due to inactivity. label Apr 22, 2025
Copy link

Issue closed due to inactivity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2025
@rbtr rbtr reopened this Apr 30, 2025
@rbtr rbtr removed the stale Stale due to inactivity. label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants