summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-12 19:06:01 +0300
committerWolfy-J <[email protected]>2018-06-12 19:06:01 +0300
commitf8d8e9a55d31c6ee98b1f292e49b31b474883a4f (patch)
treea931e304869d1076b5ca6bd793800d701406331a /cmd
parentd6aa174084bff228ab36d560252e2d11d0d6cc15 (diff)
tests!
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rr/debug/listener.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/rr/debug/listener.go b/cmd/rr/debug/listener.go
index 393e2b2e..1b6fcf83 100644
--- a/cmd/rr/debug/listener.go
+++ b/cmd/rr/debug/listener.go
@@ -20,10 +20,10 @@ func (s *listener) Listener(event int, ctx interface{}) {
// http events
switch event {
case http.EventResponse:
- log := ctx.(*http.Log)
+ log := ctx.(*http.Event)
s.logger.Info(utils.Sprintf("%s <white+hb>%s</reset> %s", statusColor(log.Status), log.Method, log.Uri))
case http.EventError:
- log := ctx.(*http.Log)
+ log := ctx.(*http.Event)
if _, ok := log.Error.(roadrunner.JobError); ok {
s.logger.Info(utils.Sprintf("%s <white+hb>%s</reset> %s", statusColor(log.Status), log.Method, log.Uri))