From 3599604d6899d781dd2bae07ab50bd254d3d6563 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 19 Apr 2011 17:23:16 -0400 Subject: [PATCH] Removed extra logging. The bug I was hunting was not in Citadel. --- webcit/calendar.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/webcit/calendar.c b/webcit/calendar.c index 886188f48..6861a6a89 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -489,7 +489,7 @@ void display_individual_cal(icalcomponent *event, long msgnum, char *from, int u } /* Store it in the hash list. */ - syslog(LOG_DEBUG, "INITIAL: %s", ctime(&Cal->event_start)); + /* syslog(LOG_DEBUG, "INITIAL: %s", ctime(&Cal->event_start)); */ Put(WCC->disp_cal_items, (char*) &Cal->event_start, sizeof(Cal->event_start), @@ -550,33 +550,25 @@ void display_individual_cal(icalcomponent *event, long msgnum, char *from, int u while ( ps = icalcomponent_get_first_property(cptr, ICAL_DTSTART_PROPERTY), ps != NULL ) { - syslog(LOG_DEBUG, "Removing old dtstart"); icalcomponent_remove_property(cptr, ps); - syslog(LOG_DEBUG, "Removed old dtstart"); } /* Add our shiny new DTSTART property from the iteration */ - syslog(LOG_DEBUG, "Adding new dtstart"); ps = icalproperty_new_dtstart(next); icalcomponent_add_property(cptr, ps); Cal->event_start = icaltime_as_timet(next); final_recurrence = Cal->event_start; - syslog(LOG_DEBUG, "Added new dtstart"); /* Remove any existing DTEND properties */ while ( ps = icalcomponent_get_first_property(cptr, ICAL_DTEND_PROPERTY), (ps != NULL) ) { - syslog(LOG_DEBUG, "Removing old dtend"); icalcomponent_remove_property(cptr, ps); - syslog(LOG_DEBUG, "Removed old dtend"); } /* Add our shiny new DTEND property from the iteration */ - syslog(LOG_DEBUG, "Adding new dtend"); ps = icalproperty_new_dtend(icaltime_add(next, dur)); icalcomponent_add_property(cptr, ps); - syslog(LOG_DEBUG, "Added new dtend"); } @@ -594,14 +586,7 @@ void display_individual_cal(icalcomponent *event, long msgnum, char *from, int u if ( (Cal->event_start > calv->lower_bound) && (Cal->event_start < calv->upper_bound) ) { - -/* FIXME we are getting two different timestamps here and that's why it is not working */ - syslog(LOG_DEBUG, "REPEATS: %s", ctime(&Cal->event_start)); - time_t foo; - foo = icaltime_as_timet(icalproperty_get_dtstart(icalcomponent_get_first_property(Cal->cal, ICAL_DTSTART_PROPERTY))); - syslog(LOG_DEBUG, "REPEATZ: %s", ctime(&foo)); - - + /* syslog(LOG_DEBUG, "REPEATS: %s", ctime(&Cal->event_start)); */ Put(WCC->disp_cal_items, (char*) &Cal->event_start, sizeof(Cal->event_start), -- 2.39.2