mirror of
https://github.com/eko/pihole-exporter.git
synced 2024-11-21 11:05:22 +01:00
Print go version at startup
This commit is contained in:
parent
c13fb48352
commit
55dca92b79
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
vendor
|
||||
bin
|
||||
tmp
|
||||
|
||||
.vscode
|
||||
report.xml
|
||||
debug
|
||||
|
@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"reflect"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@ -190,6 +191,7 @@ func (c EnvConfig) show() {
|
||||
log.Println("------------------------------------")
|
||||
log.Println("- PI-Hole exporter configuration -")
|
||||
log.Println("------------------------------------")
|
||||
log.Printf("Go version: %s", runtime.Version())
|
||||
for i := 0; i < val.NumField(); i++ {
|
||||
valueField := val.Field(i)
|
||||
typeField := val.Type().Field(i)
|
||||
|
Loading…
Reference in New Issue
Block a user