[telepathy-gabble/master] Fall back to DEBUG for unrecognised log levels
Will Thompson
will.thompson at collabora.co.uk
Wed Jun 17 04:43:59 PDT 2009
Having an assertion here makes me uneasy: it doesn't look like you
actually *have* to specify a log level when you call g_log().
---
src/debugger.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/debugger.c b/src/debugger.c
index ffc358a..4ee2ab6 100644
--- a/src/debugger.c
+++ b/src/debugger.c
@@ -58,7 +58,8 @@ log_level_flags_to_debug_level (GLogLevelFlags level)
else if (level & G_LOG_LEVEL_DEBUG)
return GABBLE_DEBUG_LEVEL_DEBUG;
else
- g_assert_not_reached ();
+ /* Fall back to DEBUG if all else fails */
+ return GABBLE_DEBUG_LEVEL_DEBUG;
}
static GabbleDebugMessage *
--
1.5.6.5
More information about the telepathy-commits
mailing list