|
@@ -6,6 +6,7 @@ import (
|
|
"flag"
|
|
"flag"
|
|
"fmt"
|
|
"fmt"
|
|
"html/template"
|
|
"html/template"
|
|
|
|
+ "io/ioutil"
|
|
"log"
|
|
"log"
|
|
"math/rand"
|
|
"math/rand"
|
|
"net/http"
|
|
"net/http"
|
|
@@ -190,7 +191,7 @@ func plaintext(c web.C, w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
|
func main() {
|
|
func main() {
|
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
|
-
|
|
|
|
|
|
+ log.SetOutput(ioutil.Discard) // add line 3
|
|
db, err := sql.Open("mysql", connectionString)
|
|
db, err := sql.Open("mysql", connectionString)
|
|
if err != nil {
|
|
if err != nil {
|
|
log.Fatalf("Error opening database: %v", err)
|
|
log.Fatalf("Error opening database: %v", err)
|