summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Toso <me@victortoso.com>2016-03-02 22:21:23 +0100
committerVictor Toso <me@victortoso.com>2016-03-11 12:36:24 +0100
commitfa5539b92f4df721f24edff0da3c8bed17892fcc (patch)
treea0a55c78bb2ec7aa94be888bc2d6ec4c650b7c8b
parent471b7820cb168142a461bec407deac22d48dffa4 (diff)
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
-rw-r--r--src/lua-factory/grl-lua-factory.c3
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);