Repository navigation
GCVCALLP-3421 add support for log format override - #171
Merged
john-macaslan-gc merged 12 commits intoNov 16, 2026
Merged
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 11 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
… into GCVCALLP-3421-log-format-override
bcnewlin
approved these changes
Oct 30, 2026
Collaborator
|
With Claude, I found some issues, a crash, hostname rewrite. Created a package that reproduces each issue and includes proposed patches with verification. It's a standalone package that you can run using test.sh. |
benceszigeti
approved these changes
Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For the sipproxies, we currently have a mix of plain text logs (from OpenSIPS) and JSON logs (from the sipproxies). OpenSIPS supports JSON as well, but enabling this format causes a problem - our sipproxy JSON logs get stringified and nested as a "message" property. I experimented with various solutions, and after discussing with @bcnewlin, we decided that the simplest approach for now was to add a format override to xlog. That way, we can get all our logs as JSON, which will be much nicer for Sumo. Long term, it would be wonderful to implement a fully-fledged logging module in OpenSIPS (the existing OpenSIPS logging code is piecemeal and inflexible), but this would be a considerable effort.
Companion PR for sipproxy-v2: https://bitbucket.org/inindca/sipproxy-v2/pull-requests/526