log intervals only if exists

This commit is contained in:
Radu Ioan Fericean
2012-08-10 20:42:34 +03:00
parent 2505e9b6b7
commit 7110b40238

View File

@@ -153,7 +153,9 @@ func (cd *CallDescriptor) SearchStorageForPrefix() (destPrefix string, err error
}
//load the activation preriods
if err == nil && len(values) > 0 {
Logger.Debug(fmt.Sprintf("Activation periods: ", values[0].Intervals))
if len(values[0].Intervals) > 0 {
Logger.Debug(fmt.Sprintf("Activation periods: ", values[0].Intervals))
}
cd.ActivationPeriods = values
}
return