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
70977c91
Commit
70977c91
authored
Nov 07, 2023
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
param: New "all" counterpart to "none" for vsl_mask
parent
63e4f71e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
mgt_param_tweak.c
bin/varnishd/mgt/mgt_param_tweak.c
+3
-1
c00054.vtc
bin/varnishtest/tests/c00054.vtc
+1
-0
params.h
include/tbl/params.h
+1
-0
No files found.
bin/varnishd/mgt/mgt_param_tweak.c
View file @
70977c91
...
...
@@ -680,6 +680,8 @@ tweak_generic_bits(struct vsb *vsb, const struct parspec *par, const char *arg,
if
(
arg
!=
NULL
&&
arg
!=
JSON_FMT
)
{
if
(
sign
==
'+'
&&
!
strcmp
(
arg
,
"none"
))
bit_clear
(
p
,
l
);
else
if
(
sign
==
'-'
&&
!
strcmp
(
arg
,
"all"
))
bit_clear
(
p
,
l
);
else
return
(
bit_tweak
(
vsb
,
p
,
l
,
arg
,
tags
,
desc
,
sign
));
}
else
{
...
...
@@ -693,7 +695,7 @@ tweak_generic_bits(struct vsb *vsb, const struct parspec *par, const char *arg,
}
}
if
(
*
s
==
'\0'
)
VSB_cat
(
vsb
,
sign
==
'+'
?
"none"
:
"
(all enabled)
"
);
VSB_cat
(
vsb
,
sign
==
'+'
?
"none"
:
"
all
"
);
if
(
arg
==
JSON_FMT
)
VSB_putc
(
vsb
,
'"'
);
}
...
...
bin/varnishtest/tests/c00054.vtc
View file @
70977c91
...
...
@@ -9,6 +9,7 @@ varnish v1 -cliok "param.set vsl_mask +WorkThread,+TTL,+Hash"
varnish v1 -cliok "param.show vsl_mask"
varnish v1 -cliexpect {"value": "none"} "param.set -j feature none"
varnish v1 -cliexpect {"value": "all"} "param.set -j vsl_mask all"
varnish v1 -clierr 106 "param.set vsl_mask FooBar"
varnish v1 -clierr 106 "param.set vsl_mask -FooBar"
...
...
include/tbl/params.h
View file @
70977c91
...
...
@@ -1881,6 +1881,7 @@ PARAM_BITS(
"-WorkThread"
,
/* descr */
"Mask individual VSL messages from being logged.
\n
"
"
\t
all
\t
Enable all tags
\n
"
"
\t
default
\t
Set default value
\n
"
"
\n
Use +/- prefix in front of VSL tag name to unmask/mask "
"individual VSL messages."
)
...
...
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