Remove debug messages

This commit is contained in:
TeoV
2018-09-17 06:53:56 -04:00
committed by Dan Christian Bogos
parent 4bcd7c9028
commit d0d728d4d7
4 changed files with 0 additions and 27 deletions

View File

@@ -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

View File

@@ -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