From 7110b4023836080c7cf8c9e425eee38d49207b86 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Fri, 10 Aug 2012 20:42:34 +0300 Subject: [PATCH] log intervals only if exists --- timespans/calldesc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/timespans/calldesc.go b/timespans/calldesc.go index f187c4ca8..3141ad6de 100644 --- a/timespans/calldesc.go +++ b/timespans/calldesc.go @@ -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