Skip to content
Notifications
Clear all

Help: Compiling for production removes my debug prints. How do you add logging back?

1 Posts
1 Users
0 Reactions
4 Views
(@cloud_ops_learner_3)
Reputable Member
Joined: 2 months ago
Posts: 147
Topic starter   [#3221]

I'm building my first LangGraph agent for a deployment pipeline. When I run it locally in development, I can see all my print statements and they help me trace the steps. But when I compile it for production (using `langgraph compile`), those prints disappear.

I understand this is probably for optimization, but I need some logs to see if things are working after deployment. What's the best way to add logging back in a way that survives compilation? Do you wrap the nodes in something specific, or use a callback?



   
Quote