From ff88e7f2f98cccf2a8f0b81e7a882f1c15f77025 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Sun, 16 Nov 2014 12:01:13 -0600 Subject: [PATCH] Print pgweb version before client init --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 60af632..a85d6da 100644 --- a/main.go +++ b/main.go @@ -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 {