[gom] gom: Add debug when a type couldn't be mapped



commit 4062ec05a6f4cc65e0cc780dbc231ba740c938a9
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Apr 18 10:29:15 2014 +0200

    gom: Add debug when a type couldn't be mapped

 gom/gom-command-builder.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gom/gom-command-builder.c b/gom/gom-command-builder.c
index 29fecd2..7ad4a82 100644
--- a/gom/gom-command-builder.c
+++ b/gom/gom-command-builder.c
@@ -86,8 +86,11 @@ is_mapped (GParamSpec *pspec)
      return FALSE;
 
    ret = (sql_type_for_column(pspec) != NULL);
-   if (!ret)
+   if (!ret) {
+     g_debug("Property %s not mapped because type is unsupported (%s)",
+             pspec->name, g_type_name(pspec->value_type));
      return FALSE;
+   }
 
    ret = !GPOINTER_TO_INT(g_param_spec_get_qdata(pspec, GOM_RESOURCE_NOT_MAPPED));
 


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