aboutsummaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-09 12:06:08 +0800
committerUnknwon <u@gogs.io>2015-08-09 12:06:08 +0800
commit68b9d78386f74e14841ddc20df110591ac7fba23 (patch)
tree3324b9e8b8f74999fa639c7c0237f44b391961d0 /models/user.go
parent4b43ffc96cf16cd49b5796feca8ad853f3e3a8ee (diff)
downloadgitea-68b9d78386f74e14841ddc20df110591ac7fba23.tar.gz
gitea-68b9d78386f74e14841ddc20df110591ac7fba23.zip
remove sync.Pool and support go1.2 again
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go3
1 files changed, 2 insertions, 1 deletions
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)