Skip to content

Commit ea9a362

Browse files
committed
added success log for file upload
1 parent 9d48cd7 commit ea9a362

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ func postHandler() http.HandlerFunc {
117117
w.Write([]byte("Error while writing the file"))
118118
return
119119
}
120+
log.Info().Str("path", dstPath).Msg("File uploaded successfully")
120121
w.WriteHeader(http.StatusOK)
121122
w.Write([]byte("File uploaded successfully"))
122123
}

0 commit comments

Comments
 (0)