[evolution-mapi] Move logger setup to after the profile is loaded
- From: Jonathon Jongsma <jjongsma src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Move logger setup to after the profile is loaded
- Date: Wed, 27 Jan 2010 17:24:03 +0000 (UTC)
commit bbb7a71cb5b49a76259fc9d52e05c5e0866142ad
Author: Jonathon Jongsma <jonathon quotidian org>
Date: Mon Jan 25 11:05:50 2010 -0600
Move logger setup to after the profile is loaded
The calls to SetMAPIDumpData() and SetMAPIDebugLevel() will fail if called
before the global mapi context is set up. These calls were being made too
early, so they were failing. Moving them after MAPIInitialize() fixes the debug
output.
https://bugzilla.gnome.org/show_bug.cgi?id=608048
src/libexchangemapi/exchange-mapi-connection.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-connection.c b/src/libexchangemapi/exchange-mapi-connection.c
index e1eece5..72c52cc 100644
--- a/src/libexchangemapi/exchange-mapi-connection.c
+++ b/src/libexchangemapi/exchange-mapi-connection.c
@@ -87,13 +87,6 @@ mapi_profile_load (const char *profname, const char *password)
const char *profile = NULL;
guint32 debug_log_level = 0;
- /* Initialize libmapi logger*/
- if (g_getenv ("LIBMAPI_DEBUG")) {
- debug_log_level = atoi (g_getenv ("MAPI_DEBUG"));
- SetMAPIDumpData(TRUE);
- SetMAPIDebugLevel(debug_log_level);
- }
-
/* Initialize libexchangemapi logger*/
if (g_getenv ("EXCHANGEMAPI_DEBUG")) {
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, mapi_debug_logger, NULL);
@@ -118,6 +111,13 @@ mapi_profile_load (const char *profname, const char *password)
goto cleanup;
}
+ /* Initialize libmapi logger*/
+ if (g_getenv ("LIBMAPI_DEBUG")) {
+ debug_log_level = atoi (g_getenv ("MAPI_DEBUG"));
+ SetMAPIDumpData(TRUE);
+ SetMAPIDebugLevel(debug_log_level);
+ }
+
if (profname)
profile = profname;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]