Print pgweb version before client init
This commit is contained in:
parent
27e192440e
commit
ff88e7f2f9
3
main.go
3
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user