adjust banner

This commit is contained in:
kayos@tcp.direct 2023-01-15 04:59:05 -08:00
parent 4f3e770e17
commit caa3008a57
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

View File

@ -39,7 +39,12 @@ func init() {
config.Init()
log = config.StartLogger()
log.Trace().Msg("Logger started")
log.Info().Str("version", Version).Str("compileTime", compileTime).Send()
index := len(Version)
if len(Version) > 18 {
index = 18
}
log.Info().Str("version", Version[:index]).Send()
log.Info().Str("built", compileTime).Send()
if len(os.Args) < 1 {
return
}