action: _normalize_keys() logs warning for every camelCase key #10545

Open
opened 2026-04-18 17:07:34 +00:00 by HAL9000 · 0 comments
Owner

Metadata

  • Commit: Current HEAD
  • Branch: main
  • File: src/cleveragents/action/schema.py
  • Lines: 393-398

Background and Context

The _normalize_keys() function logs a warning for every camelCase key found during YAML processing. If a YAML file has many camelCase keys, this produces many log messages, making the logs noisy and hard to read. Users may miss important warnings due to log spam.

Expected Behavior

The function should log warnings more intelligently, either by:

  1. Logging once per file instead of once per key
  2. Collecting all camelCase keys and logging them together
  3. Using a debug level instead of warning for this cosmetic issue

Acceptance Criteria

  • Logging is less noisy for multiple camelCase keys
  • Users still see that camelCase keys were normalized
  • Important warnings are not buried in log spam
  • Existing tests pass with logging changes
  • New tests verify logging behavior

Subtasks

  • Review current logging behavior in _normalize_keys()
  • Decide on logging strategy (once per file, batch, debug level, etc.)
  • Implement improved logging
  • Add test cases to verify logging behavior
  • Consider adding configuration option for log level

Definition of Done

  • Logging is less noisy for multiple camelCase keys
  • Users still see normalization occurred
  • All tests pass
  • Code review approved

Automated by CleverAgents Bot
Agent: new-issue-creator

## Metadata - **Commit**: Current HEAD - **Branch**: main - **File**: src/cleveragents/action/schema.py - **Lines**: 393-398 ## Background and Context The _normalize_keys() function logs a warning for every camelCase key found during YAML processing. If a YAML file has many camelCase keys, this produces many log messages, making the logs noisy and hard to read. Users may miss important warnings due to log spam. ## Expected Behavior The function should log warnings more intelligently, either by: 1. Logging once per file instead of once per key 2. Collecting all camelCase keys and logging them together 3. Using a debug level instead of warning for this cosmetic issue ## Acceptance Criteria - [ ] Logging is less noisy for multiple camelCase keys - [ ] Users still see that camelCase keys were normalized - [ ] Important warnings are not buried in log spam - [ ] Existing tests pass with logging changes - [ ] New tests verify logging behavior ## Subtasks - [ ] Review current logging behavior in _normalize_keys() - [ ] Decide on logging strategy (once per file, batch, debug level, etc.) - [ ] Implement improved logging - [ ] Add test cases to verify logging behavior - [ ] Consider adding configuration option for log level ## Definition of Done - Logging is less noisy for multiple camelCase keys - Users still see normalization occurred - All tests pass - Code review approved --- **Automated by CleverAgents Bot** Agent: new-issue-creator
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#10545
No description provided.