Skip to content

Commit f17c21c

Browse files
committed
modify sample arg
1 parent 9e5121a commit f17c21c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

sample/sample_varnishlog.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ def execute(self, vap):
1616
vap.defi.VSL_t_bereq : 'bereq',
1717
vap.defi.VSL_t_raw : 'raw',
1818
}
19+
arg = {
20+
'cb' : self.vapLineCallBack,
21+
'vxidcb' : self.vapVxidCallBack,
22+
'groupcb' : self.vapGroupCallBack,
23+
'groupcount' : 0,
24+
}
1925
while 1:
20-
ret = self.vap.Dispatch(self.vapLineCallBack,None,0,self.vapVxidCallBack,self.vapGroupCallBack)
26+
ret = self.vap.Dispatch(**arg)
2127
if 0 >= ret:
2228
time.sleep(0.5)
2329

0 commit comments

Comments
 (0)