Skip to content
Snippets Groups Projects
Commit 5acfaaa7 authored by Jonah Husson's avatar Jonah Husson
Browse files

better log messages in printcontact

parent e75e4728
No related branches found
No related tags found
2 merge requests!23Release,!6Bob/contact
...@@ -243,10 +243,10 @@ func init() { ...@@ -243,10 +243,10 @@ func init() {
} }
func printContact(c contact.Contact) { func printContact(c contact.Contact) {
jww.DEBUG.Printf("Printing client: %+v", c) jww.DEBUG.Printf("Printing contact: %+v", c)
cBytes := c.Marshal() cBytes := c.Marshal()
if len(cBytes) == 0 { if len(cBytes) == 0 {
jww.ERROR.Print("Marshaled client has a size of 0.") jww.ERROR.Print("Marshaled contact has a size of 0.")
} else { } else {
jww.DEBUG.Printf("Printing marshaled contact of size %d.", len(cBytes)) jww.DEBUG.Printf("Printing marshaled contact of size %d.", len(cBytes))
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment