mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-01-10 00:16:04 +01:00
Panic less
This commit is contained in:
4
main.go
4
main.go
@@ -94,11 +94,11 @@ func main() {
|
||||
CertHex: c.LNDCertHex,
|
||||
})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
e.Logger.Fatalf("Error initializing the LND connection: %s.", err)
|
||||
}
|
||||
getInfo, err := lndClient.GetInfo(ctx, &lnrpc.GetInfoRequest{})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
e.Logger.Fatalf("Error getting node info: %s.", err)
|
||||
}
|
||||
logger.Infof("Connected to LND: %s - %s", getInfo.Alias, getInfo.IdentityPubkey)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user