13 comments (13 comments)0 reactions (0 reactions)1 assignee (1 assignee)C++385 forks (385 forks)batch import
code cleanupgood first issue
Repository metrics
- Stars
- 2,760 stars (2,760 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
Description
Summary:
There are many instances of code that looks like:
if (msg.str().length() > 0)
logger.info(msg);
We should either:
- have the info() method ignore empty messages in general
- wrap the call in a function
Additional Information:
Originally from this PR comment: https://github.com/stan-dev/stan/pull/2570#discussion_r201151286
Current Version:
v2.17.1
Contributor guide
- Research direction
- Identify all occurrences of the pattern `if (msg.str().length() > 0) logger.info(msg);` in the codebase. Evaluate two approaches: (1) modify the info() method to ignore empty messages, or (2) wrap the pattern in a helper function. Implement the chosen solution consistently and update tests accordingly.
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Refactor
- Prerequisites
- C++Git