Skip to content

Commit d7f5c8b

Browse files
committed
update makefile and vcl
1 parent 53eb87a commit d7f5c8b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ SHELL := bash
22

33
.PHONY: run
44
run:
5-
go run ./cmd/server --port=8080
5+
CGO_ENABLED=0 go build -o varnishlog-parser cmd/server/varnishlog-parser.go
6+
./varnishlog-parser --port=8080
67

78
.PHONY: test
89
test:

docker-test/backend.vcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import std;
66
backend default none;
77

88
sub vcl_recv {
9+
std.log("start custom backend recv");
10+
911
set req.backend_hint = default;
1012

1113
if (req.url ~ "^/ec1") {
@@ -24,6 +26,7 @@ sub vcl_recv {
2426
return(synth(709, "ESI 1"));
2527
}
2628

29+
std.log("end custom backend recv");
2730
return(synth(710, "OK"));
2831
}
2932

0 commit comments

Comments
 (0)