add commit hash to logs

This commit is contained in:
Jesse de Wit
2024-01-26 16:50:51 +01:00
parent be7db07f95
commit 6cbe45629f
3 changed files with 41 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ import (
"syscall"
"time"
"github.com/breez/lspd/build"
"github.com/breez/lspd/chain"
"github.com/breez/lspd/cln"
"github.com/breez/lspd/common"
@@ -38,6 +39,7 @@ func main() {
return
}
log.Printf(`Starting lspd, tag='%s', revision='%s'`, build.GetTag(), build.GetRevision())
n := os.Getenv("NODES")
var nodeConfigs []*config.NodeConfig
err := json.Unmarshal([]byte(n), &nodeConfigs)