From 3993fcd4ba813f3c978c98648ad5fa2f4d848d7d Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 10 Jun 2014 09:02:17 -0500 Subject: in engine-eds, add debug messages --- src/engine-eds.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp index da93206..1949193 100644 --- a/src/engine-eds.cpp +++ b/src/engine-eds.cpp @@ -418,6 +418,14 @@ private: auto status = ICAL_STATUS_NONE; e_cal_component_get_status(component, &status); + const auto begin_dt = DateTime(begin); + const auto end_dt = DateTime(end); + g_debug ("got appointment from %s to %s, uid %s status %d", + begin_dt.format("%F %T").c_str(), + end_dt.format("%F %T").c_str(), + uid, + (int)status); + if ((uid != nullptr) && (status != ICAL_STATUS_COMPLETED) && (status != ICAL_STATUS_CANCELLED)) @@ -430,8 +438,8 @@ private: if (text.value) appointment.summary = text.value; - appointment.begin = DateTime(begin); - appointment.end = DateTime(end); + appointment.begin = begin_dt; + appointment.end = end_dt; appointment.color = subtask->color; appointment.uid = uid; -- cgit v1.2.3