Print pgweb version before client init

This commit is contained in:
Dan Sosedoff 2014-11-16 12:01:13 -06:00
parent 27e192440e
commit ff88e7f2f9

View File

@ -163,7 +163,6 @@ func startServer() {
router.GET("/history", API_History)
router.GET("/static/:type/:name", API_ServeAsset)
fmt.Println("Pgweb version", VERSION)
fmt.Println("Starting server...")
go router.Run(fmt.Sprintf("%v:%v", options.HttpHost, options.HttpPort))
}
@ -192,6 +191,8 @@ func openPage() {
func main() {
initOptions()
fmt.Println("Pgweb version", VERSION)
initClient()
if dbClient != nil {