Skip to content

Commit

Permalink
upx best compression and human readable duration in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcvr committed Oct 31, 2024
1 parent 386f102 commit 2013269
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ builds:

upx:
- enabled: true
compress: 3
compress: best

archives:
- format: tar.gz
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2013269

Please sign in to comment.