projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use a filter function to show only desired contacts
[modest]
/
src
/
modest-init.c
diff --git
a/src/modest-init.c
b/src/modest-init.c
index
5d3189a
..
db9be25
100644
(file)
--- a/
src/modest-init.c
+++ b/
src/modest-init.c
@@
-186,7
+186,7
@@
force_ke_recv_load (void)
{
if (strcmp ("cerm_device_memory_full",
_KR("cerm_device_memory_full")) == 0) {
{
if (strcmp ("cerm_device_memory_full",
_KR("cerm_device_memory_full")) == 0) {
- g_warning ("%s: cannot get translation for cerm_device_memory_full",
+ g_debug ("%s: cannot get translation for cerm_device_memory_full",
__FUNCTION__);
return FALSE;
}
__FUNCTION__);
return FALSE;
}
@@
-281,7
+281,7
@@
init_ui (gint argc, gchar** argv)
{
/* Set application name */
g_set_application_name (modest_platform_get_app_name());
{
/* Set application name */
g_set_application_name (modest_platform_get_app_name());
- /* g_message (modest_platform_get_app_name()); */
+ /* g_debug (modest_platform_get_app_name()); */
/* Init stock icons */
init_stock_icons ();
/* Init stock icons */
init_stock_icons ();
@@
-564,11
+564,29
@@
init_debug_g_type (void)
g_type_init_with_debug_flags (gflags);
}
g_type_init_with_debug_flags (gflags);
}
+#ifndef DEBUG
+static void
+null_log(const gchar* dom,
+ GLogLevelFlags l,
+ const gchar* m,
+ gpointer d)
+{
+ return;
+};
+#endif
+
static void
init_debug_logging (void)
{
ModestRuntimeDebugFlags mflags;
mflags = modest_runtime_get_debug_flags ();
static void
init_debug_logging (void)
{
ModestRuntimeDebugFlags mflags;
mflags = modest_runtime_get_debug_flags ();
+
+#ifndef DEBUG
+ if (! (mflags & MODEST_RUNTIME_DEBUG_CODE)) {
+ g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, null_log, NULL);
+ }
+#endif
+
if (mflags & MODEST_RUNTIME_DEBUG_ABORT_ON_WARNING)
g_log_set_always_fatal (G_LOG_LEVEL_ERROR |
if (mflags & MODEST_RUNTIME_DEBUG_ABORT_ON_WARNING)
g_log_set_always_fatal (G_LOG_LEVEL_ERROR |
@@
-680,7
+698,7
@@
init_stock_icons (void)
g_object_unref (pixbuf);
}
else
g_object_unref (pixbuf);
}
else
- g_warning ("Modest: %s: failed to load %s icon", __FUNCTION__, items_names[i]);
+ g_warning ("%s: failed to load %s icon", __FUNCTION__, items_names[i]);
}
/* Drop our reference to the factory, GTK will hold a reference. */
g_object_unref (factory);
}
/* Drop our reference to the factory, GTK will hold a reference. */
g_object_unref (factory);