Fixed test

This commit is contained in:
tidwall 2018-10-29 08:16:04 -07:00
parent e577f60481
commit 60b054d58c
2 changed files with 6 additions and 3 deletions

View File

@ -28,6 +28,10 @@ func SetOutput(w io.Writer) {
wr = w
}
func init() {
SetOutput(os.Stderr)
}
func log(level int, tag, color string, formatted bool, format string, args ...interface{}) {
if Level < level {
return

View File

@ -20,7 +20,7 @@ import (
"github.com/gomodule/redigo/redis"
"github.com/tidwall/gjson"
"github.com/tidwall/tile38/controller"
"github.com/tidwall/tile38/internal/server"
)
const tile38Port = 9191
@ -31,7 +31,6 @@ var tile38Addr string
var httpAddr string
var wd string
var server string
var minX float64
var minY float64
@ -101,7 +100,7 @@ func main() {
func startTile38Server() {
log.Println("start tile38 server")
err := controller.ListenAndServe("localhost", tile38Port, "data")
err := server.Serve("localhost", tile38Port, "data", false)
if err != nil {
log.Fatal(err)
}