forked from golang/glog
-
Notifications
You must be signed in to change notification settings - Fork 227
KObjSlice: nil entry printed as "" #409
Copy link
Copy link
Open
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Metadata
Metadata
Assignees
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Type
Projects
Status
Needs Triage
/kind bug
What steps did you take and what happened:
I added a test in https://github.com/kubernetes/kubernetes/pull/125699/files
*NodeInfoimplementsklog.KMetadata. The first slice entry is passed toklog.KObjwhich detects the nil value and turns it into an emptyObjectRef{}. That then gets printed as""in the array.What did you expect to happen:
Some kind of indicator that the first entry is nil.