More logging

This commit is contained in:
Felix Geisendörfer 2013-03-17 16:18:39 +01:00
parent 03faa9dbb7
commit 798e9fd8ab
1 changed files with 8 additions and 2 deletions

View File

@ -7,10 +7,16 @@ import (
)
func main() {
log.Printf("tusd started")
http.HandleFunc("/", route)
err := http.ListenAndServe(":1080", nil)
addr := ":1080"
log.Printf("serving clients at %s", addr)
err := http.ListenAndServe(addr, nil)
if err != nil {
log.Fatal("ListenAndServe: ", err)
log.Fatal(err)
}
}