diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2020-11-21 16:44:48 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2020-11-21 16:44:48 -0500 |
| commit | 3e1b39031437eaf48c5c6ea895dd632b1249b0a2 (patch) | |
| tree | 3b778d03d074b3798a4c53bbf19b1b0be389260d /cmd/web/download.go | |
| parent | 415c4a1a48502ae5180c48188c8f2e94d9c9d92c (diff) | |
| download | steam-export-3e1b39031437eaf48c5c6ea895dd632b1249b0a2.tar.gz steam-export-3e1b39031437eaf48c5c6ea895dd632b1249b0a2.tar.xz | |
Allow the library to be changed. Fix up quit handler. Improve logging
Diffstat (limited to 'cmd/web/download.go')
| -rw-r--r-- | cmd/web/download.go | 6 |
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) } |
