More logging
This commit is contained in:
parent
03faa9dbb7
commit
798e9fd8ab
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue