Skip to content

Conversation

Elbehery
Copy link
Contributor

@Elbehery Elbehery commented Aug 7, 2025

What does this PR do?

This PR replaces default logger usage with custom llama_stack logger.

This PR aligns logging categories as per the package name, as well as reviews from initial PR

Replaces #2868
Part of #2865

cc @leseb @ashwinb @rhuss

Copy link
Contributor

@cdoern cdoern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some comments on the category names here and a few other things

@Elbehery Elbehery force-pushed the 20250807_use_llama-stack_logger branch 2 times, most recently from 98db31f to d447738 Compare August 7, 2025 13:28
@@ -51,7 +51,7 @@
from .openai_responses import OpenAIResponsesImpl
from .persistence import AgentInfo

logger = logging.getLogger()
logger = get_logger(name=__name__, category="llama")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this not agents category (like in the diff below) ? Where is this llama coming from ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, should be agents 👍🏽

fixing all this in a separate PR now :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed the changes which only renames the categories to #3065

the changes which replaces

logger = logging.getLogger(__name__)

with

logger = get_logger(name=__name__, category="")

Still in this PR

ptal 👍🏽

@Elbehery Elbehery force-pushed the 20250807_use_llama-stack_logger branch from d447738 to c5793f6 Compare August 7, 2025 17:19
@Elbehery Elbehery force-pushed the 20250807_use_llama-stack_logger branch from c5793f6 to b5f98c0 Compare August 8, 2025 06:32
@Elbehery
Copy link
Contributor Author

Elbehery commented Aug 8, 2025

This change has been added in 348cf69

Closing

@Elbehery Elbehery closed this Aug 8, 2025
@Elbehery Elbehery deleted the 20250807_use_llama-stack_logger branch August 8, 2025 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants