From f2436288f6e538bd289f2e7a69c17c8e84c14227 Mon Sep 17 00:00:00 2001 From: TeoV Date: Wed, 28 Nov 2018 10:36:06 -0500 Subject: [PATCH] Update glide.lock with correct version of mongo for encoding time.Time --- agents/libdiam.go | 2 +- agents/libhttpagent.go | 6 ++++-- agents/librad.go | 2 +- glide.lock | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/agents/libdiam.go b/agents/libdiam.go index 1a4ea4523..d574189bf 100644 --- a/agents/libdiam.go +++ b/agents/libdiam.go @@ -280,7 +280,7 @@ type diameterDP struct { // String is part of engine.DataProvider interface // when called, it will display the already parsed values out of cache func (dP *diameterDP) String() string { - return dP.cache.String() + return dP.m.String() } // AsNavigableMap is part of engine.DataProvider interface diff --git a/agents/libhttpagent.go b/agents/libhttpagent.go index 78948e638..e9cbdbedb 100644 --- a/agents/libhttpagent.go +++ b/agents/libhttpagent.go @@ -23,6 +23,7 @@ import ( "fmt" "io/ioutil" "net/http" + "net/http/httputil" "strconv" "strings" @@ -60,7 +61,8 @@ type httpUrlDP struct { // String is part of engine.DataProvider interface // when called, it will display the already parsed values out of cache func (hU *httpUrlDP) String() string { - return hU.cache.String() + byts, _ := httputil.DumpRequest(hU.req, true) + return string(byts) } // FieldAsInterface is part of engine.DataProvider interface @@ -122,7 +124,7 @@ type httpXmlDP struct { // String is part of engine.DataProvider interface // when called, it will display the already parsed values out of cache func (hU *httpXmlDP) String() string { - return hU.cache.String() + return hU.xmlDoc.OutputXML(true) } // FieldAsInterface is part of engine.DataProvider interface diff --git a/agents/librad.go b/agents/librad.go index e285a0d60..96c41144b 100644 --- a/agents/librad.go +++ b/agents/librad.go @@ -150,7 +150,7 @@ type radiusDP struct { // String is part of engine.DataProvider interface // when called, it will display the already parsed values out of cache func (pk *radiusDP) String() string { - return pk.cache.String() + return utils.ToJSON(pk.req) // return ToJSON because Packet don't have a string method } // FieldAsInterface is part of engine.DataProvider interface diff --git a/glide.lock b/glide.lock index c0f2f3d18..c476211d7 100644 --- a/glide.lock +++ b/glide.lock @@ -97,7 +97,7 @@ imports: - name: github.com/fsnotify/fsnotify version: ccc981bf80385c528a65fbfdd49bf2d8da22aa23 - name: github.com/cgrates/mgo - version: 04b6cd516663d1f91d8f914e66ae743d3ab1685c + version: 5d96853206543d8c9d681d96a5ad2369e68873dd subpackages: - bson - internal/json