Skip to content

Conversation

@peterkarabinovic
Copy link
Contributor

@peterkarabinovic peterkarabinovic commented Oct 15, 2025

Enhanced Debug Logging

Replaced usage of fmt.Sprintf("%+v", …) for logging complex structs with JSON-marshaled byte arrays.
It allows to analyze and modify log events in the log handler.

Overall Summary

This PR refactors debug logging in Genkit’s core model and action modules to:

  • Use JSON serialization for clearer, machine-readable log output.
  • Improve consistency and readability of log data for debugging and telemetry.

Checklist (if applicable):

@google-cla
Copy link

google-cla bot commented Oct 15, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added the go label Oct 15, 2025
@pavelgj pavelgj requested a review from apascal07 October 15, 2025 17:52
@apascal07 apascal07 merged commit acbfe22 into firebase:main Oct 16, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants