SMG - StoreSMCost error check fix, CDRS - Add syslog for errors served out of cache to detect key issues

This commit is contained in:
DanB
2016-08-29 14:51:08 +02:00
parent 4da8d44a6a
commit 77164ceaf1
2 changed files with 2 additions and 1 deletions

View File

@@ -531,6 +531,7 @@ func (self *CdrServer) V1StoreSMCost(attr AttrCDRSStoreSMCost, reply *string) er
if item, err := self.getCache().Get(cacheKey); err == nil && item != nil {
if item.Value != nil {
*reply = item.Value.(string)
utils.Logger.Err(fmt.Sprintf("<CDRS> Serving cached error for key: %s, err: %s", cacheKey, *reply))
}
return item.Err
}