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("/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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user