Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent3
Commits
e07523f6
Commit
e07523f6
authored
Apr 11, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishevent: only log VCL_Call entries with a colon
parent
3d033b2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
varnishevent.c
bin/varnishevent/varnishevent.c
+5
-2
writer.c
bin/varnishevent/writer.c
+2
-2
No files found.
bin/varnishevent/varnishevent.c
View file @
e07523f6
...
...
@@ -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
,
...
...
bin/varnishevent/writer.c
View file @
e07523f6
...
...
@@ -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
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment