mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
SMG - StoreSMCost error check fix, CDRS - Add syslog for errors served out of cache to detect key issues
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user