Skip to content

Commit

Permalink
handler: Avoid duplicate log of upload ID
Browse files Browse the repository at this point in the history
Closes #1146

Co-Authored-By: Lucky <[email protected]>
  • Loading branch information
Acconut and luckycatx committed Jun 20, 2024
1 parent 57d06cf commit a4ece9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/handler/unrouted_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ func (handler *UnroutedHandler) PostFile(w http.ResponseWriter, r *http.Request)

handler.Metrics.incUploadsCreated()
c.log = c.log.With("id", id)
c.log.Info("UploadCreated", "id", id, "size", size, "url", url)
c.log.Info("UploadCreated", "size", size, "url", url)

if handler.config.NotifyCreatedUploads {
handler.CreatedUploads <- newHookEvent(c, info)
Expand Down

0 comments on commit a4ece9a

Please sign in to comment.