Skip to content

GCVCALLP-3421 add support for log format override - #171

Merged
john-macaslan-gc merged 12 commits into
3.6-genesysfrom
GCVCALLP-3421-log-format-override
Nov 16, 2026
Merged

john-macaslan-gc merged 12 commits into
3.6-genesysfrom
GCVCALLP-3421-log-format-override

Conversation

@john-macaslan-gc

@john-macaslan-gc john-macaslan-gc commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

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

@john-macaslan-gc john-macaslan-gc self-assigned this Oct 20, 2026
@codacy-production

codacy-production Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 11 complexity

Metric Results
Complexity 11

View in Codacy

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.

Comment thread xlog.c Resolved
Comment thread xlog.c Resolved
Comment thread action.c Resolved
Comment thread dprint.c Resolved
@benceszigeti

Copy link
Copy Markdown
Collaborator

@john-macaslan-gc

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.

reproduce-GCVCALLP-3421.tar.gz

@john-macaslan-gc
john-macaslan-gc merged commit b4d44b7 into 3.6-genesys Nov 16, 2026
35 of 129 checks passed
@john-macaslan-gc
john-macaslan-gc deleted the GCVCALLP-3421-log-format-override branch December 3, 2026 12:24
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.

3 participants