Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
6c0c0181
Commit
6c0c0181
authored
Jan 15, 2019
by
Poul-Henning Kamp
Committed by
Dridi Boukelmoune
Jul 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a -m ("Miss") argument which also logs the records which do not match
parent
98f594e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
vtc_logexp.c
bin/varnishtest/vtc_logexp.c
+9
-0
No files found.
bin/varnishtest/vtc_logexp.c
View file @
6c0c0181
...
...
@@ -65,6 +65,8 @@
* \-q query
* Filter records using a query expression, see ``man vsl-query`` for
* more information.
* \-m
* Also emit log records for misses (only for debugging)
*
* \-start
* Start the logexpect thread in the background.
...
...
@@ -153,6 +155,7 @@ struct logexp {
int
vxid_last
;
int
tag_last
;
int
m_arg
;
int
d_arg
;
enum
VSL_grouping_e
g_arg
;
char
*
query
;
...
...
@@ -308,6 +311,8 @@ logexp_dispatch(struct VSL_data *vsl, struct VSL_transaction * const pt[],
if
(
ok
)
legend
=
"match"
;
else
if
(
skip
&&
le
->
m_arg
)
legend
=
"miss"
;
else
if
(
skip
)
legend
=
NULL
;
else
...
...
@@ -597,6 +602,10 @@ cmd_logexpect(CMD_ARGS)
av
++
;
continue
;
}
if
(
!
strcmp
(
*
av
,
"-m"
))
{
le
->
m_arg
=
!
le
->
m_arg
;
continue
;
}
if
(
!
strcmp
(
*
av
,
"-start"
))
{
logexp_start
(
le
);
continue
;
...
...
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