projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
44f5382
)
Made the log easier to read
author
Art Cancro
<ajc@citadel.org>
Wed, 21 Feb 2024 19:49:17 +0000
(14:49 -0500)
committer
Art Cancro
<ajc@citadel.org>
Wed, 21 Feb 2024 19:49:17 +0000
(14:49 -0500)
webcit-ng/server/caldav_reports.c
patch
|
blob
|
history
diff --git
a/webcit-ng/server/caldav_reports.c
b/webcit-ng/server/caldav_reports.c
index 05d3b9ef65e9b37c5b92a26f280e9d2b9f063fbf..d93088076b8ba8a4296afb4da36ba68796213fbd 100644
(file)
--- a/
webcit-ng/server/caldav_reports.c
+++ b/
webcit-ng/server/caldav_reports.c
@@
-280,7
+280,6
@@
int caldav_apply_filters(void *cal, Array *filters) {
int qual = 1; // 0 for disqualify, 1 for qualify
while ( (f<array_len(filters)) && (qual) ) {
int qual = 1; // 0 for disqualify, 1 for qualify
while ( (f<array_len(filters)) && (qual) ) {
- syslog(LOG_DEBUG, "caldav_apply_filters(%d) %s", f, array_get_element_at(filters, f) );
// Tokenize the filter (a future performance hack would be to pre-tokenize instead of storing delimited strings)
char this_filter[SIZ];
// Tokenize the filter (a future performance hack would be to pre-tokenize instead of storing delimited strings)
char this_filter[SIZ];
@@
-292,6
+291,7
@@
int caldav_apply_filters(void *cal, Array *filters) {
++num_tokens;
}
int level = atoi(t[0]);
++num_tokens;
}
int level = atoi(t[0]);
+ syslog(LOG_DEBUG, "caldav_apply_filters() filter=%d, level=%d, <%s>", f, level, array_get_element_at(filters, f) );
// Handle the individual filters defined in RFC4791 9.7.1 through 9.7.5
// Handle the individual filters defined in RFC4791 9.7.1 through 9.7.5
@@
-386,8
+386,10
@@
void caldav_report(struct http_transaction *h, struct ctdlsession *c) {
int qualify = 1;
// If there was a filter stanza, run this calendar item through the filters.
int qualify = 1;
// If there was a filter stanza, run this calendar item through the filters.
+ syslog(LOG_DEBUG, "Evaluating message \033[33m%ld\033[0m...", m);
qualify = caldav_apply_filters(cal, crp.filters);
qualify = caldav_apply_filters(cal, crp.filters);
- syslog(LOG_DEBUG, "Message %ld does%s qualify", m, (qualify ? "" : " NOT"));
+ syslog(LOG_DEBUG, "Message %ld %s\033[0m qualify", m, (qualify ? "\033[32mDOES" : "\033[31mDOES NOT"));
+ syslog(LOG_DEBUG, "");
// Did this calendar item match the query? If so, output it.
if (qualify) {
// Did this calendar item match the query? If so, output it.
if (qualify) {