mirror of
https://github.com/pushbits/server.git
synced 2025-06-14 08:32:05 +02:00
Move some logging statements for more consistency
This commit is contained in:
parent
34abda1ede
commit
b89deeac3d
2 changed files with 6 additions and 6 deletions
|
@ -84,6 +84,8 @@ func (h *UserHandler) updateUser(ctx *gin.Context, u *model.User, updateUser mod
|
|||
}
|
||||
}
|
||||
|
||||
log.Printf("Updating user %s.\n", u.Name)
|
||||
|
||||
if updateUser.Name != nil {
|
||||
u.Name = *updateUser.Name
|
||||
}
|
||||
|
@ -211,8 +213,6 @@ func (h *UserHandler) UpdateUser(ctx *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
log.Printf("Updating user %s.\n", user.Name)
|
||||
|
||||
if err := h.updateUser(ctx, user, updateUser); err != nil {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue