[grilo-plugins] lua-factory: More warnings with unknown/unhandled metadata keys



commit d830e9320c52f72efad2624b9bbfa7c24bde56e4
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Feb 28 14:19:33 2014 +0100

    lua-factory: More warnings with unknown/unhandled metadata keys
    
    Print out a warning when a key name is not registered, and upgrade
    to a warning statement the debug output that warned about unhandled
    GTypes.

 src/lua-factory/grl-lua-library.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/lua-factory/grl-lua-library.c b/src/lua-factory/grl-lua-library.c
index 631c779..14f0d24 100644
--- a/src/lua-factory/grl-lua-library.c
+++ b/src/lua-factory/grl-lua-library.c
@@ -273,10 +273,12 @@ grl_util_build_media (lua_State *L,
            const guint8 *binary = lua_tostring (L, -1);
            grl_data_set_binary (GRL_DATA (media), key_id, binary, size);
         } else if (!lua_isnil (L, -1)) {
-          GRL_DEBUG ("'%s' is being ignored as G_TYPE is not being handled.",
-                     key_name);
+          GRL_WARNING ("'%s' is being ignored as G_TYPE is not being handled.",
+                       key_name);
         }
       }
+    } else {
+      GRL_WARNING ("'%s' is not a valid keyword", key_name);
     }
 
     g_free (key_name);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]