aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-06-10 09:02:17 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-06-10 09:02:17 -0500
commit3993fcd4ba813f3c978c98648ad5fa2f4d848d7d (patch)
treeb733c36af02bd81635cf2976fdbc25d0e825a9b6 /src
parent0e5acaedb9cb419b7fc607de175fce23025805c2 (diff)
downloadayatana-indicator-datetime-3993fcd4ba813f3c978c98648ad5fa2f4d848d7d.tar.gz
ayatana-indicator-datetime-3993fcd4ba813f3c978c98648ad5fa2f4d848d7d.tar.bz2
ayatana-indicator-datetime-3993fcd4ba813f3c978c98648ad5fa2f4d848d7d.zip
in engine-eds, add debug messages
Diffstat (limited to 'src')
-rw-r--r--src/engine-eds.cpp12
1 files changed, 10 insertions, 2 deletions
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;