summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-23 20:10:02 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-23 20:10:02 (GMT)
commitbee04ed05c38e333e6971d552e4bf063105b01cd (patch)
tree2ab70ce72d4d75c1dc0a688b2caf955b516df10e /src
parent8f38ca5d38495097ed87b105022da37bfbedede4 (diff)
improved logging in error case at webupload
Diffstat (limited to 'src')
-rw-r--r--src/rhimportd/uploadWeb.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rhimportd/uploadWeb.go b/src/rhimportd/uploadWeb.go
index d60fb22..a4f0951 100644
--- a/src/rhimportd/uploadWeb.go
+++ b/src/rhimportd/uploadWeb.go
@@ -90,7 +90,7 @@ func webUploadHandler(conf *rhimport.Config, db *rddb.DBChan, sessions *rhimport
}
defer close(attachmentChan)
- rhl.Printf("WebUploadHandler: starting file upload for '%s/%s'", username, sessionid)
+ rhl.Printf("WebUploadHandler: starting file upload for '%s/%s' (ContentLength: %d)", username, sessionid, r.ContentLength)
sizeTotal := uint64(0)
hash := sha256.New()
body := io.TeeReader(r.Body, hash)
@@ -116,7 +116,7 @@ func webUploadHandler(conf *rhimport.Config, db *rddb.DBChan, sessions *rhimport
select {
case <-cancel:
- rhl.Printf("WebUploadHandler: file upload for '%s/%s' got canceld", username, sessionid)
+ rhl.Printf("WebUploadHandler: file upload for '%s/%s' got canceld after %d bytes", username, sessionid, sizeTotal)
webUploadErrorResponse(w, http.StatusNoContent, "canceled")
return
case attachmentChan <- chunk: