Skip to content

Commit e9b709b

Browse files
authored
remove extraneous logging
1 parent 361c8a7 commit e9b709b

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

routers/repo/attachment.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ func DeleteAttachment(ctx *context.Context) {
9292

9393
// GetAttachment serve attachements
9494
func GetAttachment(ctx *context.Context) {
95-
log.Info("GetAttachment(%s)", ctx.Params(":uuid"))
9695
attach, err := models.GetAttachmentByUUID(ctx.Params(":uuid"))
9796
if err != nil {
9897
if models.IsErrAttachmentNotExist(err) {
@@ -157,6 +156,4 @@ func GetAttachment(ctx *context.Context) {
157156
ctx.ServerError("ServeData", err)
158157
return
159158
}
160-
log.Info("GetAttachment(%s) Done", ctx.Params(":uuid"))
161-
162159
}

routers/repo/download.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ func ServeData(ctx *context.Context, name string, size int64, reader io.Reader)
3232
if n >= 0 {
3333
buf = buf[:n]
3434
}
35-
log.Info("ServeData(%s)", name)
3635

3736
ctx.Resp.Header().Set("Cache-Control", "public,max-age=86400")
3837

@@ -72,14 +71,10 @@ func ServeData(ctx *context.Context, name string, size int64, reader io.Reader)
7271
}
7372
}
7473

75-
log.Info("ServeData(%s) Header done", name)
76-
7774
_, err = ctx.Resp.Write(buf)
7875
if err != nil {
7976
return err
8077
}
81-
log.Info("ServeData(%s) buffer done", name)
82-
8378
_, err = io.Copy(ctx.Resp, reader)
8479
return err
8580
}

0 commit comments

Comments
 (0)