From 2210eac230db2247b0ec5b82c6be974a5ed0a767 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 14 Oct 2015 10:08:06 +0800 Subject: [PATCH] logging --- conf/wide.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/wide.go b/conf/wide.go index e6c15e5..808b5e0 100644 --- a/conf/wide.go +++ b/conf/wide.go @@ -237,7 +237,9 @@ func initWide(confPath, confIP, confPort, confServer, confLogLevel, confStaticSe Wide.Context = confContext } - Wide.StaticResourceVersion = strings.Replace(Wide.StaticResourceVersion, "${time}", strconv.FormatInt(time.Now().UnixNano(), 10), 1) + time := strconv.FormatInt(time.Now().UnixNano(), 10) + logger.Debugf("${time} [%s]", time) + Wide.StaticResourceVersion = strings.Replace(Wide.StaticResourceVersion, "${time}", time, 1) // Channel Wide.Channel = strings.Replace(Wide.Channel, "{IP}", Wide.IP, 1)