Commit 3785d79c authored by Felipe Borges's avatar Felipe Borges
Browse files

background: Don't warn for invalid xml tags

g_warning () is for environment errors. Additional tags than the
ones we require are not necessarily an error.

This behavior causes g-c-c to spam the journal with entries such

Unknown Tag in /usr/share/gnome-background-properties/fedora-workstation-backgrounds.xml: license
Unknown Tag in /usr/share/gnome-background-properties/fedora-workstation-backgrounds.xml: email
Unknown Tag in /usr/share/gnome-background-properties/fedora-workstation-backgrounds.xml: author

Where "license", "email", and "author" are valid tags that we just
don't use.
parent 4894057b
......@@ -271,7 +271,7 @@ cc_background_xml_load_xml_internal (CcBackgroundXml *xml,
} else if (!strcmp ((gchar *)wpa->name, "text")) {
/* Do nothing here, libxml2 is being weird */
} else {
g_warning ("Unknown Tag in %s: %s", filename, wpa->name);
g_debug ("Unknown Tag in %s: %s", filename, wpa->name);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment