mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Remove debugging logs
This commit is contained in:
committed by
Dan Christian Bogos
parent
7460750e77
commit
6d1837e53a
@@ -285,7 +285,6 @@ func startSessionS(internalSMGChan, internalRaterChan, internalResourceSChan, in
|
||||
sm := sessions.NewSessionS(cfg, ralsConns, resSConns, threshSConns,
|
||||
statSConns, suplSConns, attrSConns, cdrsConn, chargerSConn,
|
||||
sReplConns, cfg.GeneralCfg().DefaultTimezone)
|
||||
//
|
||||
if err = sm.ListenAndServe(exitChan); err != nil {
|
||||
utils.Logger.Err(fmt.Sprintf("<%s> error: %s!", utils.SessionS, err))
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package sessions
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -106,7 +105,6 @@ func (s Session) Clone() (cln *Session) {
|
||||
}
|
||||
|
||||
func (s *Session) AsActiveSessions(tmz, nodeID string) (aSs []*ActiveSession) {
|
||||
fmt.Println(utils.ToJSON(s))
|
||||
s.RLock()
|
||||
aSs = make([]*ActiveSession, len(s.SRuns))
|
||||
for i, sr := range s.SRuns {
|
||||
|
||||
@@ -916,7 +916,6 @@ func (sS *SessionS) asActiveSessions(fltrs map[string]string,
|
||||
if count {
|
||||
return nil, len(remainingSessions), nil
|
||||
}
|
||||
fmt.Println(remainingSessions)
|
||||
for _, s := range remainingSessions {
|
||||
aSs = append(aSs,
|
||||
s.AsActiveSessions(sS.cgrCfg.GeneralCfg().DefaultTimezone,
|
||||
|
||||
Reference in New Issue
Block a user