From caa3008a57ba90ef9295c4dfe638961aec10a2ce Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Sun, 15 Jan 2023 04:59:05 -0800 Subject: [PATCH] adjust banner --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 11b6c38..24c3bf8 100644 --- a/main.go +++ b/main.go @@ -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 }