rstudio / rstudio/platform-lib
rslog.CapturingLogger: Messages returns its underlying message slice
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 12
- Forks
- 0
- Avg merge
- 18h 8m
- Merged PRs (30d)
- 10
Description
The capturing logger returns its underlying message slice, allowing a caller to modify the recorded message contents.
Messages() should return a copy of its message slice.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect pkg/rslog/capturing_logger.go around lines 129-131 and 143-148, focusing on Messages(). Confirm how the returned slice currently aliases recorded messages. Done means callers receive an independent message slice and cannot modify the logger's recorded contents.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100