Skip to content

Commit

Permalink
Add peer ID of host to process started log.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed Nov 20, 2024
1 parent 4e14373 commit ed9e511
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/internal/serve/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func serve() cli.ActionFunc {
Host: h,
Handler: system.HandlerFunc(func(ctx context.Context, p *proc.P) error {
slog.InfoContext(ctx, "process started",
"peer", h.ID(),
"pid", p.String())

<-ctx.Done()
Expand Down

0 comments on commit ed9e511

Please sign in to comment.