Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structured logging + erb_lint + pry debugger #734

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

Conversation

kitallis
Copy link
Member

@kitallis kitallis commented Feb 12, 2025

Logging

All elog should also take mandatorily take a level. On sentry: error is High Priority, warn is Medium, debug is Low. Alerts from Sentry to Slack only happen on High.

Development (and test) logs are now back to standard rails logs. Production continues to be structured. This is because there are certain TurboStream::Channel and ActionCable logs that get swallowed under lograge because those libraries implement logging poorly.

Revived a quick log helper in dev called d. Which can be used to log a variable with its name simultaneously.

Sidekiq will automatically log to sentry when a job goes to dead-queue as error and it will log to sentry when a job fails as warn (medium priority).

Dead code

Removed some dead code and cleaned up the related TODOs.

Byebug

We now use pry-byebug instead of just pry for a proper debugging experience. See arguments and guides.

@kitallis kitallis marked this pull request as ready for review February 13, 2025 15:47
@kitallis kitallis changed the title Better structured logging + pry Structured logging + erb_lint + pry debugger Feb 18, 2025
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