mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
add record even if no cost was obtained
This commit is contained in:
@@ -157,9 +157,9 @@ func (m *Mediator) parseCSV(dir, cdrfn string) (err error) {
|
||||
}
|
||||
if err != nil {
|
||||
timespans.Logger.Err(fmt.Sprintf("Could not get the cost for mediator record (%v): %v", record, err))
|
||||
continue
|
||||
} else {
|
||||
record = append(record, strconv.FormatFloat(cc.ConnectFee+cc.Cost, 'f', -1, 64))
|
||||
}
|
||||
record = append(record, strconv.FormatFloat(cc.ConnectFee+cc.Cost, 'f', -1, 64))
|
||||
w.WriteString(strings.Join(record, ","))
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user