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
9902494d
Commit
9902494d
authored
Oct 28, 2011
by
Lasse Karstensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
15e4f620
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
varnishncsa.c
bin/varnishncsa/varnishncsa.c
+0
-4
No files found.
bin/varnishncsa/varnishncsa.c
View file @
9902494d
...
@@ -490,23 +490,19 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
...
@@ -490,23 +490,19 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
case
SLT_VCL_Log
:
case
SLT_VCL_Log
:
if
(
!
lp
->
active
)
if
(
!
lp
->
active
)
break
;
break
;
//lp->log1 = trimline(ptr, end);
// Extract key, value from logline.
split
=
strchr
(
ptr
,
':'
);
split
=
strchr
(
ptr
,
':'
);
if
(
split
==
NULL
)
if
(
split
==
NULL
)
break
;
break
;
struct
hdr
*
h
;
struct
hdr
*
h
;
h
=
malloc
(
sizeof
(
struct
hdr
));
h
=
malloc
(
sizeof
(
struct
hdr
));
// XXX: what is this AN() business? probably important. :)
AN
(
h
);
AN
(
h
);
AN
(
split
);
AN
(
split
);
h
->
key
=
trimline
(
ptr
,
split
);
h
->
key
=
trimline
(
ptr
,
split
);
h
->
value
=
trimline
(
split
+
1
,
end
);
h
->
value
=
trimline
(
split
+
1
,
end
);
// put onto the linked list that is log entries.
VTAILQ_INSERT_HEAD
(
&
lp
->
vcl_log
,
h
,
list
);
VTAILQ_INSERT_HEAD
(
&
lp
->
vcl_log
,
h
,
list
);
break
;
break
;
...
...
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