Use system info and build info as user agent, and expose DebugInfo (#41)

* Refactor setting and unsetting system info

* detect version on init

* Update client.go

* Update client_test.go

Co-authored-by: Copilot <[email protected]>

* Update client.go

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
Nikola Jokic
2025-12-17 16:29:45 +01:00
committed by GitHub
co-authored by Copilot
parent 40342b1e2a
commit f3ab19d2b8
5 changed files with 467 additions and 131 deletions
+4 -1
View File
@@ -133,7 +133,10 @@ func (l *Listener) Run(ctx context.Context, scaler Scaler) error {
defer func() {
l.logger.Debug("Deleting message session")
if err := l.deleteMessageSession(); err != nil {
l.logger.Error("failed to delete message session", "error", err.Error())
l.logger.Error(
"failed to delete message session",
slog.String("error", err.Error()),
)
}
}()