diff --git a/routers/user/profile.go b/routers/user/profile.go index 8685cd734..1d275c191 100755 --- a/routers/user/profile.go +++ b/routers/user/profile.go @@ -6,9 +6,7 @@ package user import ( - "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/services/badge" - "encoding/json" "errors" "fmt" "path" @@ -105,8 +103,6 @@ func Profile(ctx *context.Context) { ctx.Data["Owner"] = ctxUser ctx.Data["OpenIDs"] = openIDs ctx.Data["RecentBadges"] = badges - b, _ := json.Marshal(badges) - log.Info(string(b)) ctx.Data["EnableHeatmap"] = setting.Service.EnableUserHeatmap ctx.Data["HeatmapUser"] = ctxUser.Name showPrivate := ctx.IsSigned && (ctx.User.IsAdmin || ctx.User.ID == ctxUser.ID) @@ -316,8 +312,6 @@ func Profile(ctx *context.Context) { ctx.ServerError("GetUserAllBadges", err) return } - ab, _ := json.Marshal(allBadges) - log.Info(string(ab)) ctx.Data["AllBadges"] = allBadges default: ctx.ServerError("tab error", errors.New("tab error"))