node: log golang version on startup

This commit is contained in:
tbjump 2023-05-23 19:59:01 +00:00 committed by tbjump
parent db462668a6
commit a5a37495bb
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import (
"os"
"os/signal"
"path"
"runtime"
"strings"
"syscall"
@ -1030,6 +1031,9 @@ func runNode(cmd *cobra.Command, args []string) {
logger.Info("Telemetry disabled")
}
// log golang version
logger.Info("golang version", zap.String("golang_version", runtime.Version()))
// Redirect ipfs logs to plain zap
ipfslog.SetPrimaryCore(logger.Core())