when logging version, also log go version and goos and goarch

This commit is contained in:
Mechiel Lukkien
2023-12-14 14:11:13 +01:00
parent 6d081f38fc
commit 22f46aa174
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@ import (
"os"
"os/signal"
"path/filepath"
"runtime"
"syscall"
"time"
@ -144,7 +145,7 @@ during those commands instead of during "data".
if err := start(mtastsdbRefresher, sendDMARCReports, sendTLSReports, skipForkExec); err != nil {
log.Fatalx("starting mox", err)
}
golog.Printf("mox, version %s", moxvar.Version)
golog.Printf("mox, version %s, %s %s/%s", moxvar.Version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
golog.Print("")
golog.Printf("the default user is mox@localhost, with password moxmoxmox")
golog.Printf("the default admin password is moxadmin")