diff options
Diffstat (limited to 'routers/repo/editor.go')
-rw-r--r-- | routers/repo/editor.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/editor.go b/routers/repo/editor.go index 54046258b8..6c47f51f9b 100644 --- a/routers/repo/editor.go +++ b/routers/repo/editor.go @@ -35,7 +35,7 @@ const ( func renderCommitRights(ctx *context.Context) bool { canCommit, err := ctx.Repo.CanCommitToBranch(ctx.User) if err != nil { - log.Error(4, "CanCommitToBranch: %v", err) + log.Error("CanCommitToBranch: %v", err) } ctx.Data["CanCommitToBranch"] = canCommit return canCommit @@ -117,7 +117,7 @@ func editFile(ctx *context.Context, isNewFile bool) { buf = append(buf, d...) if content, err := templates.ToUTF8WithErr(buf); err != nil { if err != nil { - log.Error(4, "ToUTF8WithErr: %v", err) + log.Error("ToUTF8WithErr: %v", err) } ctx.Data["FileContent"] = string(buf) } else { |