Index: calendar/gui/alarm-notify/alarm-notify.c
===================================================================
--- calendar/gui/alarm-notify/alarm-notify.c	(revision 34957)
+++ calendar/gui/alarm-notify/alarm-notify.c	(working copy)
@@ -313,7 +313,7 @@
 
 	priv = an->priv;
 
-	d (printf("%s:%d (cal_opened_cb) %s - Calendar Status %d\n", __FILE__, __LINE__, e_cal_get_uri (client), status));
+	d (printf("%s:%d (cal_opened_cb) %s - Calendar Status %d/%s\n", __FILE__, __LINE__, e_cal_get_uri (client), status, e_cal_get_error_message (status) ? e_cal_get_error_message (status) : "???"));
 
 	if (status == E_CALENDAR_STATUS_OK)
 		alarm_queue_add_client (client);
Index: calendar/gui/alarm-notify/alarm-queue.c
===================================================================
--- calendar/gui/alarm-notify/alarm-queue.c	(revision 34957)
+++ calendar/gui/alarm-notify/alarm-queue.c	(working copy)
@@ -384,8 +384,10 @@
 	g_return_val_if_fail (alarm_uid != NULL, FALSE);
 
 	alarm = e_cal_component_get_alarm (comp, alarm_uid);
-	if (!alarm)
-		 return FALSE;
+	if (!alarm) {
+		d(printf("No alarm found.\n"));
+		return FALSE;
+	}
 
 	e_cal_component_alarm_get_action (alarm, &action);
 	e_cal_component_alarm_free (alarm);
@@ -497,7 +499,11 @@
 		instance = l->data;
 
 		if (!has_known_notification (cqa->alarms->comp, instance->auid)) {
+			char *txt;
 			g_debug ("Could not recognize alarm's notification type, discarding.");
+			txt = e_cal_component_get_as_string (cqa->alarms->comp);
+			d(printf("---\n%s\n---\n", txt ? txt : "[null]"));
+			g_free (txt);
 			continue;
 		}
 
@@ -604,7 +610,8 @@
 	from = MAX (config_data_get_last_notification_time () + 1, day_start);
 
 	day_end = time_day_end_with_zone (now, zone);
-	d(printf("%s:%d (load_alarms_for_today) - From %s to %s\n",__FILE__, __LINE__, ctime (&from), ctime(&day_end)));
+	d(printf("%s:%d (load_alarms_for_today) - From %s", __FILE__, __LINE__, ctime (&from)));
+	d(printf(" to %s\n", ctime(&day_end)));
 	load_alarms (ca, from, day_end);
 }
 
@@ -616,7 +623,7 @@
 
 	ca = data;
 
-	d(printf("%s:%d (cal_opened_cb) - Opened Calendar %p (Status %d)\n",__FILE__, __LINE__, client, status==E_CALENDAR_STATUS_OK));
+	d(printf("%s:%d (cal_opened_cb) - Opened Calendar %p (Status %d/%s)\n",__FILE__, __LINE__, client, status, e_cal_get_error_message (status) ? e_cal_get_error_message (status) : "???"));
 	if (status != E_CALENDAR_STATUS_OK)
 		return;
 
@@ -801,7 +808,11 @@
 			instance = sl->data;
 
 			if (!has_known_notification (cqa->alarms->comp, instance->auid)) {
+				char *txt;
 				g_debug ("Could not recognize alarm's notification type, discarding.");
+				txt = e_cal_component_get_as_string (cqa->alarms->comp);
+				d(printf("---\n%s\n---\n", txt ? txt : "[null]"));
+				g_free (txt);
 				continue;
 			}
 
