Skip to content

Add optional debug logging behind LOGGING=1#21

Open
michaelmelanson wants to merge 1 commit into
render-oss:mainfrom
michaelmelanson:add-optional-debug-logging
Open

Add optional debug logging behind LOGGING=1#21
michaelmelanson wants to merge 1 commit into
render-oss:mainfrom
michaelmelanson:add-optional-debug-logging

Conversation

@michaelmelanson

Copy link
Copy Markdown
Contributor

Summary

  • Add a pkg/logging package with HTTP middleware and MCP hooks for request/tool logging
  • Log Render API errors and missing auth headers when debug logging is enabled
  • Improve API error messages when the response body has no message field
  • Gate all debug logging behind LOGGING=1

Test plan

  • Run without LOGGING=1 and confirm no debug log output
  • Run with LOGGING=1 and confirm HTTP requests, tool calls, and API errors appear on stderr
  • Run go test ./pkg/client/...

Made with Cursor

Log HTTP requests, MCP tool calls, auth header issues, and Render API errors to stderr when LOGGING=1 is set.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant