liquidvotingio / liquidvotingio/decidim-module-liquidvoting

Add backtrace info to "surprise method call" logging

Open
#99 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

We are currently logging (just rails log) whenever something calls `Proposal#update_votes_count`, because Liquidvoting doesn't use it, and it will corrupt our vote count.

The log line is nice, but doesn't help us know where it comes from; adding a backtrace in the log would do that.

This issue might be superceded by some Honeycomb events work.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the existing log statement for Proposal#update_votes_count and review how the unexpected call is currently recorded. Add the requested backtrace information to that log and verify that a surprising call produces useful origin details; first confirm the work has not been superseded by Honeycomb events.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
observability-sre
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.