Mercurial > pidgin
comparison libpurple/protocols/jabber/parser.c @ 24471:e2f5a4a091b5
Don't log an error when parsing vcard data. Also, these messages
apparently have newlines at the end of them, so don't add one
ourselves.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 18 Nov 2008 02:00:48 +0000 |
parents | 08c50482d5a2 |
children | 8de8ca65e1d9 |
comparison
equal
deleted
inserted
replaced
24470:d038fc351194 | 24471:e2f5a4a091b5 |
---|---|
135 static void | 135 static void |
136 jabber_parser_structured_error_handler(void *user_data, xmlErrorPtr error) | 136 jabber_parser_structured_error_handler(void *user_data, xmlErrorPtr error) |
137 { | 137 { |
138 JabberStream *js = user_data; | 138 JabberStream *js = user_data; |
139 | 139 |
140 if (error->level == XML_ERR_WARNING && error->message != NULL | |
141 && strcmp(error->message, "xmlns: URI vcard-temp is not absolute\n") == 0) | |
142 /* | |
143 * This message happens when parsing vcards, and is normal, so don't | |
144 * bother logging it because people scare easily. | |
145 */ | |
146 return; | |
147 | |
140 purple_debug_error("jabber", "XML parser error for JabberStream %p: " | 148 purple_debug_error("jabber", "XML parser error for JabberStream %p: " |
141 "Domain %i, code %i, level %i: %s\n", | 149 "Domain %i, code %i, level %i: %s", |
142 js, | 150 js, |
143 error->domain, error->code, error->level, | 151 error->domain, error->code, error->level, |
144 (error->message ? error->message : "(null)")); | 152 (error->message ? error->message : "(null)")); |
145 } | 153 } |
146 | 154 |