Commit e07523f6 authored by Geoff Simmons's avatar Geoff Simmons

varnishevent: only log VCL_Call entries with a colon

parent 3d033b2e
......@@ -177,10 +177,10 @@ static inline logline_t
if (VSTAILQ_EMPTY(&reader_freelist)) {
LOG_Log0(LOG_DEBUG, "Reader: waiting for free space");
if (WRT_Waiting())
SIGNAL_SPSCQ_READY();
waiting = 1;
AZ(pthread_mutex_lock(&data_ready_lock));
if (WRT_Waiting())
SIGNAL_SPSCQ_READY();
waits++;
AZ(pthread_cond_wait(&data_ready_cond, &data_ready_lock));
rdr_free = DATA_Take_Freelist(&reader_freelist);
......@@ -313,6 +313,9 @@ collect(struct logline_t *lp, enum VSL_tag_e tag, unsigned spec,
if (lp->spec && !(lp->spec & cb_flag))
return;
if (tag == SLT_VCL_Log && memchr(ptr, ':', len) == NULL)
return;
if (len > config.max_reclen) {
LOG_Log(LOG_ALERT,
......
......@@ -210,11 +210,11 @@ static void
errno, strerror(errno));
errors++;
}
if (wrt_nfree > 0)
wrt_return_freelist();
wrt->state = WRT_WAITING;
AZ(pthread_mutex_lock(&spscq_ready_lock));
if (wrt_nfree > 0)
wrt_return_freelist();
/*
* run is guaranteed to be fresh after the lock
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment