From: Sebastian Harl Date: Sun, 22 Feb 2015 18:27:31 +0000 (+0100) Subject: Log the remote server version on startup. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=98bf6d2647a94da911f91596cd4f049dcf0aef63;p=sysdb%2Fwebui.git Log the remote server version on startup. --- diff --git a/main.go b/main.go index e74ec55..0b2bfae 100644 --- a/main.go +++ b/main.go @@ -71,6 +71,11 @@ func main() { } conns = append(conns, conn) } + major, minor, patch, extra, err := conns[0].ServerVersion() + if err != nil { + fatalf("Failed to query server version: %v", err) + } + log.Printf("Connected to SysDB %d.%d.%d%s.", major, minor, patch, extra) srv, err := server.New(server.Config{ Conns: conns,