mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 13:19:53 +05:00
Better error log in case of starting SupplierS with no internal RALs connection
This commit is contained in:
@@ -648,7 +648,7 @@ func (self *CGRConfig) checkConfigSanity() error {
|
||||
if self.supplierSCfg != nil && self.supplierSCfg.Enabled {
|
||||
for _, connCfg := range self.supplierSCfg.RALsConns {
|
||||
if connCfg.Address != utils.MetaInternal {
|
||||
return errors.New("Only <*internal> connectivity allowed in SupplierS for now")
|
||||
return errors.New("Only <*internal> RALs connectivity allowed in SupplierS for now")
|
||||
}
|
||||
if connCfg.Address == utils.MetaInternal && !self.RALsEnabled {
|
||||
return errors.New("RALs not enabled but requested by SupplierS component.")
|
||||
|
||||
Reference in New Issue
Block a user