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