aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/download.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web/download.go')
-rw-r--r--cmd/web/download.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/web/download.go b/cmd/web/download.go
index a640ea2..93c4ff5 100644
--- a/cmd/web/download.go
+++ b/cmd/web/download.go
@@ -21,11 +21,13 @@ func gameDownloader(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Content-type", "application/tar")
+ Logger.Printf("Client %s is downloading: %s", r.RemoteAddr, game)
err := g.Package(w)
if err != nil {
- Logger.Printf("Error Sending game: %s", err)
+ Logger.Printf("Client %s Error Sending game: %s", r.RemoteAddr, err)
// Headers already sent, don't bother sending an error
+ return
}
-
+ Logger.Printf("Client %s finished downloading: %s", r.RemoteAddr, game)
}