]> code.octet-stream.net Git - broadcaster/blobdiff - server/session.go
Clean up log entries
[broadcaster] / server / session.go
index a097989a774248ec405b4c95f88415cf22196215..1ec3348f7a342b0d0bfdcab4c9403574415b82e2 100644 (file)
@@ -28,7 +28,6 @@ func currentUser(_ http.ResponseWriter, r *http.Request) (User, error) {
 
 func createSessionCookie(w http.ResponseWriter, username string) {
        sess := generateSession()
-       log.Println("Generated a random session", sess)
        expiration := time.Now().Add(365 * 24 * time.Hour)
        cookie := http.Cookie{Name: "broadcast_session", Value: sess, Expires: expiration, SameSite: http.SameSiteLaxMode}
        db.InsertSession(username, sess, expiration)