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

feat: add lograge to improve logging #5423

Merged
merged 13 commits into from
Apr 7, 2023
Prev Previous commit
Next Next commit
chore: beautify
  • Loading branch information
sojan-official committed Apr 7, 2023
commit ba6e6903879b42bdc4f40e9fd4d24ea36a7172f4
12 changes: 0 additions & 12 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,4 @@ def pundit_user
account_user: Current.account_user
}
end

def append_info_to_payload(payload)
super
payload[:level] = case payload[:status]
when 200
'INFO'
when 302
'WARN'
else
'ERROR'
end
end
end
1 change: 0 additions & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,4 @@

# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false

end