Skip to content

Commit 5fa2fef

Browse files
committed
docs: clarify log message capitalization guidance
1 parent 68332fa commit 5fa2fef

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

CLAUDE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,12 @@ forge clean
146146

147147
### Logging and Error Messages
148148

149-
- **Never capitalize** the first letter of log messages and error messages
149+
- Start log messages and error messages with lowercase text
150+
- Preserve the conventional capitalization of identifiers and acronyms when they
151+
begin a message (for example, `RIM`, `OCSP`, or `HTTP`)
150152
- Example: `log::info!("starting server on port {}", port);`
151153
- Example: `anyhow::bail!("failed to connect to server");`
152-
153-
This rule is enforced in `.cursorrules`.
154+
- Example: `log::warn!("RIM upstream is unavailable");`
154155

155156
## Key Security Concepts
156157

0 commit comments

Comments
 (0)