From 68b9d78386f74e14841ddc20df110591ac7fba23 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 9 Aug 2015 12:06:08 +0800 Subject: remove sync.Pool and support go1.2 again --- models/user.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'models/user.go') diff --git a/models/user.go b/models/user.go index 65b23f791a..3b28f5ed49 100644 --- a/models/user.go +++ b/models/user.go @@ -134,7 +134,7 @@ func (u *User) AvatarLink() string { return defaultImgUrl } if err = os.MkdirAll(path.Dir(imgPath), os.ModePerm); err != nil { - log.Error(3, "Create: %v", err) + log.Error(3, "MkdirAll: %v", err) return defaultImgUrl } fw, err := os.Create(imgPath) @@ -148,6 +148,7 @@ func (u *User) AvatarLink() string { log.Error(3, "Encode: %v", err) return defaultImgUrl } + log.Info("New random avatar created: %d", u.Id) } return setting.AppSubUrl + "/avatars/" + com.ToStr(u.Id) -- cgit v1.2.3