Skip to content

Commit fb4f58e

Browse files
committed
docs: update CLAUDE.md logging pattern to use get_logger()
Signed-off-by: Major Hayden <major@redhat.com>
1 parent 4ff7acc commit fb4f58e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ src/
5353

5454
#### Module Standards
5555
- All modules start with descriptive docstrings explaining purpose
56-
- Use `logger = logging.getLogger(__name__)` pattern for module logging
56+
- Use `logger = get_logger(__name__)` from `log.py` for module logging
5757
- Package `__init__.py` files contain brief package descriptions
5858
- Central `constants.py` for shared constants with descriptive comments
5959
- Type aliases defined at module level for clarity
@@ -89,7 +89,7 @@ src/
8989
- Handle `APIConnectionError` from Llama Stack
9090

9191
#### Logging Standards
92-
- Use `import logging` and module logger pattern: `logger = logging.getLogger(__name__)`
92+
- Use `from log import get_logger` and module logger pattern: `logger = get_logger(__name__)`
9393
- Standard log levels with clear purposes:
9494
- `logger.debug()` - Detailed diagnostic information
9595
- `logger.info()` - General information about program execution

src/app/endpoints/streaming_query.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,9 @@ async def response_generator( # pylint: disable=too-many-branches,too-many-stat
431431
chunk_id = 0
432432
media_type = context.query_request.media_type or MEDIA_TYPE_JSON
433433
text_parts: list[str] = []
434-
mcp_calls: dict[
435-
int, tuple[str, str]
436-
] = {} # output_index -> (mcp_call_id, mcp_call_name)
434+
mcp_calls: dict[int, tuple[str, str]] = (
435+
{}
436+
) # output_index -> (mcp_call_id, mcp_call_name)
437437
latest_response_object: Optional[OpenAIResponseObject] = None
438438

439439
logger.debug("Starting streaming response (Responses API) processing")

0 commit comments

Comments
 (0)