From cb191792e1727c4a2941c6fe9be1bd7820e94b80 Mon Sep 17 00:00:00 2001 From: TeoV Date: Fri, 4 Sep 2020 11:20:07 +0300 Subject: [PATCH] Verbose option is handled in EventExporter --- apier/v1/apier.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/apier/v1/apier.go b/apier/v1/apier.go index b3c3a1b6d..a323b127d 100644 --- a/apier/v1/apier.go +++ b/apier/v1/apier.go @@ -1879,16 +1879,8 @@ func (apierSv1 *APIerSv1) ExportCDRs(args *utils.ArgExportCDRs, reply *map[strin return utils.ErrPartiallyExecuted } // we consider only the last reply because it should have the metrics updated - if !args.Verbose { - (*reply)[utils.ExporterIDs] = make([]string, 0, len(rplyCdr)) - for exporterID := range rplyCdr { - (*reply)[utils.ExporterIDs] = append((*reply)[utils.ExporterIDs].([]string), exporterID) - } - } else { - for exporterID, metrics := range rplyCdr { - (*reply)[exporterID] = metrics - } - + for exporterID, metrics := range rplyCdr { + (*reply)[exporterID] = metrics } return }