Logging, reports
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user