aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-06 13:24:42 -0500
committerUnknwon <u@gogs.io>2016-03-06 13:24:42 -0500
commit13bd16af92e809766c5ae5e6193690194c3c5bc1 (patch)
tree757bc8fdf6d2be54a0e8ad99edbac41ba1e49c1a /models
parent922a6f13a3c1b66a0a3160ba7f5658c018f00931 (diff)
downloadgitea-13bd16af92e809766c5ae5e6193690194c3c5bc1.tar.gz
gitea-13bd16af92e809766c5ae5e6193690194c3c5bc1.zip
Minor fixes for #2766
Diffstat (limited to 'models')
-rw-r--r--models/user.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/models/user.go b/models/user.go
index 8b90687e32..14a05251a7 100644
--- a/models/user.go
+++ b/models/user.go
@@ -348,14 +348,13 @@ func (u *User) UploadAvatar(data []byte) error {
// DeleteAvatar deletes the user's custom avatar.
func (u *User) DeleteAvatar() error {
- log.Info("Deleting user avatar: %s", u.CustomAvatarPath())
+ log.Trace("DeleteAvatar[%d]: %s", u.Id, u.CustomAvatarPath())
os.Remove(u.CustomAvatarPath())
u.UseCustomAvatar = false
if err := UpdateUser(u); err != nil {
- return fmt.Errorf("updateUser: %v", err)
+ return fmt.Errorf("UpdateUser: %v", err)
}
-
return nil
}