[evolution-mapi] MAPI_DEBUG support added.
- From: Johnny Jacob <jjohnny src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-mapi] MAPI_DEBUG support added.
- Date: Tue, 9 Jun 2009 03:55:30 -0400 (EDT)
commit 45f387f4d3658dbf3ee9f7a97e6187c1ba5b0119
Author: Johnny Jacob <jjohnny novell com>
Date: Tue Jun 9 12:48:20 2009 +0530
MAPI_DEBUG support added.
---
src/libexchangemapi/ChangeLog | 6 ++++++
src/libexchangemapi/exchange-mapi-connection.c | 7 +++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/libexchangemapi/ChangeLog b/src/libexchangemapi/ChangeLog
index cbeda5c..bc1176b 100644
--- a/src/libexchangemapi/ChangeLog
+++ b/src/libexchangemapi/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-09 Johnny Jacob <jjohnny novell com>
+
+ * exchange-mapi-connection.c (mapi_profile_load): Added MAPI_DEBUG.
+ Exporting MAPI_DEBUG=1 prints libmapi's logs and internal data state.
+ This would dump too much information, but helps in debugging.
+
2009-06-03 Johnny Jacob <jjohnny novell com>
* exchange-mapi-connection.c (get_child_folders): Updated to accomodate traversal
diff --git a/src/libexchangemapi/exchange-mapi-connection.c b/src/libexchangemapi/exchange-mapi-connection.c
index 90e0019..e1d53f9 100644
--- a/src/libexchangemapi/exchange-mapi-connection.c
+++ b/src/libexchangemapi/exchange-mapi-connection.c
@@ -71,6 +71,7 @@ mapi_profile_load (const char *profname, const char *password)
struct mapi_session *session = NULL;
gchar *profpath = NULL;
const char *profile = NULL;
+ guint32 debug_log_level = 0;
d(g_print("\n%s: Entering %s ", G_STRLOC, G_STRFUNC));
@@ -90,6 +91,12 @@ mapi_profile_load (const char *profname, const char *password)
goto cleanup;
}
+ if (g_getenv ("MAPI_DEBUG")) {
+ debug_log_level = atoi (g_getenv ("MAPI_DEBUG"));
+ SetMAPIDumpData(TRUE);
+ SetMAPIDebugLevel(debug_log_level);
+ }
+
if (profname)
profile = profname;
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]