[master] e5e3421 Suppress the "skp" log records, they're noisy and the content is already in the l%d log records
Poul-Henning Kamp
phk at FreeBSD.org
Wed Oct 22 13:11:25 CEST 2014
commit e5e3421c5bd07b68a044ec843352ce11c6fb2354
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Oct 22 09:44:25 2014 +0000
Suppress the "skp" log records, they're noisy and the content is
already in the l%d log records
diff --git a/bin/varnishtest/vtc_logexp.c b/bin/varnishtest/vtc_logexp.c
index a2b6323..86de1ea 100644
--- a/bin/varnishtest/vtc_logexp.c
+++ b/bin/varnishtest/vtc_logexp.c
@@ -233,7 +233,7 @@ logexp_dispatch(struct VSL_data *vsl, struct VSL_transaction * const pt[],
legend = "ok";
} else if (skip) {
lvl = 4;
- legend = "skp";
+ legend = NULL;
} else {
lvl = 0;
legend = "err";
@@ -241,8 +241,9 @@ logexp_dispatch(struct VSL_data *vsl, struct VSL_transaction * const pt[],
type = VSL_CLIENT(t->c->rec.ptr) ? 'c' :
VSL_BACKEND(t->c->rec.ptr) ? 'b' : '-';
- vtc_log(le->vl, lvl, "%3s| %10u %-15s %c %.*s",
- legend, vxid, VSL_tags[tag], type, len, data);
+ if (legend != NULL)
+ vtc_log(le->vl, lvl, "%3s| %10u %-15s %c %.*s",
+ legend, vxid, VSL_tags[tag], type, len, data);
if (ok) {
le->vxid_last = vxid;
More information about the varnish-commit
mailing list