From 2013269a634e6c37530459b79eb3194413a87e99 Mon Sep 17 00:00:00 2001 From: Andrii Kuzmin Date: Thu, 31 Oct 2024 19:02:06 +0200 Subject: [PATCH] upx best compression and human readable duration in logs --- .goreleaser.yaml | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 566b74e..d823a7e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -27,7 +27,7 @@ builds: upx: - enabled: true - compress: 3 + compress: best archives: - format: tar.gz diff --git a/main.go b/main.go index 20a88f4..fb7e762 100644 --- a/main.go +++ b/main.go @@ -76,7 +76,7 @@ func main() { start := time.Now() defer func() { _ = sess.Exit(0) - slog.Info("disconnected", "addr", sess.RemoteAddr(), "duration", time.Now().Sub(start)) + slog.Info("disconnected", "addr", sess.RemoteAddr(), "duration", time.Now().Sub(start).String()) }() ctx := sess.Context()