Logging, reports

This commit is contained in:
2015-03-06 20:23:01 +07:00
parent 9f36068c54
commit 9251ad8c6d
9 changed files with 41 additions and 20 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func authCallbackHandler(w http.ResponseWriter, r *http.Request) {
}
code := r.FormValue("code")
log.Println("Got code: ", code)
log.Printf("Got code %q\n", code)
if _, login, err := task.Authenticate(code); err == nil {
createSession(r, login)
} else {
+2 -2
View File
@@ -2,8 +2,8 @@ package server
import (
"encoding/json"
"fmt"
"html/template"
"log"
"net/http"
"github.com/GeertJohan/go.rice"
@@ -34,7 +34,7 @@ func init() {
}
func Start() {
fmt.Println("Starting server at http://localhost:8080")
log.Println("Starting server at http://localhost:8080")
http.ListenAndServe(":8080", nil)
}