From ccedbd1be96df3d2f5b9cfbbc48f8211a0b6cb2b Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 6 Feb 2021 20:18:58 +1300 Subject: [PATCH] Include the UID of the card which caused us to hit the RRULE limit This will helpfully assist tracking down issues with recurrence rules. --- inc/RRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/RRule.php b/inc/RRule.php index 2e2305e2..14c7bfbe 100644 --- a/inc/RRule.php +++ b/inc/RRule.php @@ -1184,7 +1184,7 @@ function rrule_expand( $dtstart, $property, $component, $range_end, $is_date=nul $expansion[$date->FloatOrUTC($return_floating_times)] = $component; if ( $date > $range_end ) break; if ( $i++ >= $c->rrule_expansion_limit ) { - dbg_error_log( 'ERROR', "Hit rrule expansion limit of ".$c->rrule_expansion_limit." - increase rrule_expansion_limit in config to avoid events missing from freebusy" ); + dbg_error_log( 'ERROR', "Hit rrule expansion limit of ".$c->rrule_expansion_limit." on %s %s - increase rrule_expansion_limit in config to avoid events missing from freebusy", $component->GetType(), $component->GetProperty('UID')); } } // if ( DEBUG_RRULE ) print_r( $expansion );