[grilo-plugins] lua-factory: not warn for unknown keys in source table
- From: Victor Toso de Carvalho <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] lua-factory: not warn for unknown keys in source table
- Date: Fri, 11 Mar 2016 11:48:56 +0000 (UTC)
commit fa5539b92f4df721f24edff0da3c8bed17892fcc
Author: Victor Toso <me victortoso com>
Date: Wed Mar 2 22:21:23 2016 +0100
lua-factory: not warn for unknown keys in source table
At load time, lua-sources may rely on metadata-keys created in another
plugin. The warning would cause any test on lua sources to fail unless
it loads all necessary plugins for its metadata-keys.
e.g.
(test_local_metadata:9549): Grilo-WARNING **: [lua-factory]
grl-lua-factory.c:895: Unknown key 'acoustid-fingerprint' in property
'required' for source 'grl-acoustid'
https://bugzilla.gnome.org/show_bug.cgi?id=732879
src/lua-factory/grl-lua-factory.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/lua-factory/grl-lua-factory.c b/src/lua-factory/grl-lua-factory.c
index 888ce33..426eb3b 100644
--- a/src/lua-factory/grl-lua-factory.c
+++ b/src/lua-factory/grl-lua-factory.c
@@ -892,7 +892,8 @@ keys_table_array_to_list (lua_State *L,
if (key_id != GRL_METADATA_KEY_INVALID) {
filtered_list = g_list_prepend (filtered_list, GRLKEYID_TO_POINTER (key_id));
} else {
- GRL_WARNING ("Unknown key '%s' in property '%s' for source '%s'", key_name, array_name, source_id);
+ GRL_DEBUG ("Unknown key '%s' in property '%s' for source '%s'",
+ key_name, array_name, source_id);
}
}
g_list_free_full (list, g_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]