mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 14:19:54 +05:00
Remove debug messages
This commit is contained in:
committed by
Dan Christian Bogos
parent
4bcd7c9028
commit
d0d728d4d7
@@ -489,14 +489,11 @@ func (cdre *CDRExporter) ExportCDRs() (err error) {
|
||||
default:
|
||||
expFormat = cdre.exportFormat
|
||||
}
|
||||
utils.Logger.Debug(fmt.Sprintf("CDRS : %+v", cdre.cdrs))
|
||||
expPath := cdre.exportPath
|
||||
if len(filepath.Ext(expPath)) == 0 { // verify extension from exportPath (if have extension is file else is directory)
|
||||
fileName := fmt.Sprintf("cdre_%s.%s", utils.UUIDSha1Prefix(), expFormat)
|
||||
expPath = path.Join(expPath, fileName)
|
||||
}
|
||||
utils.Logger.Debug(fmt.Sprintf("expPath : %+v", expPath))
|
||||
utils.Logger.Debug(fmt.Sprintf("-------------------------------------------------------------"))
|
||||
fileOut, err := os.Create(expPath)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -487,7 +487,6 @@ func (self *CdrServer) getCostFromRater(cdr *CDR) (*CallCost, error) {
|
||||
return cc, nil
|
||||
}
|
||||
|
||||
// replicateCDRs used by online exports
|
||||
func (self *CdrServer) replicateCDRs(cdrs []*CDR) (err error) {
|
||||
for _, exportID := range self.cgrCfg.CDRSOnlineCDRExports {
|
||||
expTpl := self.cgrCfg.CdreProfiles[exportID] // not checking for existence of profile since this should be done in a higher layer
|
||||
|
||||
Reference in New Issue
Block a user