summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/repo/attachment.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/attachment.go b/routers/repo/attachment.go
index c2efb11c1d..302f5b33f7 100644
--- a/routers/repo/attachment.go
+++ b/routers/repo/attachment.go
@@ -55,6 +55,7 @@ func UploadAttachment(ctx *context.Context) {
}
if !allowed {
+ log.Info("Attachment with type %s blocked from upload", fileType)
ctx.Error(400, ErrFileTypeForbidden.Error())
return
}