Skip to content

Commit

Permalink
log the name of the state (#1440)
Browse files Browse the repository at this point in the history
The int value of the state is not super helpful to end users. Logging the name of the state instead.

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
codeboten authored Jul 18, 2024
1 parent f0d2b18 commit 2b95162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/internal/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (c *Collector) Start(ctx context.Context) error {
case otelcol.StateRunning:
return nil
default:
err = fmt.Errorf("unable to start, otelcol state is %d", state)
err = fmt.Errorf("unable to start, otelcol state is %s", state.String())
}
}
}
Expand Down

0 comments on commit 2b95162

Please sign in to comment.