Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
fe715488
Unverified
Commit
fe715488
authored
3 years ago
by
Eugen Rochko
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix warnings on Rails boot (#16946)
parent
e6508018
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/environments/development.rb
+1
-1
1 addition, 1 deletion
config/environments/development.rb
config/initializers/sidekiq.rb
+2
-0
2 additions, 0 deletions
config/initializers/sidekiq.rb
lib/sidekiq_error_handler.rb
+3
-5
3 additions, 5 deletions
lib/sidekiq_error_handler.rb
with
6 additions
and
6 deletions
config/environments/development.rb
+
1
−
1
View file @
fe715488
...
...
@@ -81,7 +81,7 @@ Rails.application.configure do
Bullet
.
bullet_logger
=
true
Bullet
.
rails_logger
=
false
Bullet
.
add_
whit
elist
type: :n_plus_one_query
,
class_name:
'User'
,
association: :account
Bullet
.
add_
saf
elist
type: :n_plus_one_query
,
class_name:
'User'
,
association: :account
end
config
.
x
.
otp_secret
=
ENV
.
fetch
(
'OTP_SECRET'
,
'1fc2b87989afa6351912abeebe31ffc5c476ead9bf8b3d74cbc4a302c7b69a45b40b1bbef3506ddad73e942e15ed5ca4b402bf9a66423626051104f4b5f05109'
)
...
...
This diff is collapsed.
Click to expand it.
config/initializers/sidekiq.rb
+
2
−
0
View file @
fe715488
# frozen_string_literal: true
require_relative
'../../lib/sidekiq_error_handler'
Sidekiq
.
configure_server
do
|
config
|
config
.
redis
=
REDIS_SIDEKIQ_PARAMS
...
...
This diff is collapsed.
Click to expand it.
app/
lib/sidekiq_error_handler.rb
→
lib/sidekiq_error_handler.rb
+
3
−
5
View file @
fe715488
...
...
@@ -17,10 +17,8 @@ class SidekiqErrorHandler
private
# rubocop:disable Naming/MethodParameterName
def
limit_backtrace_and_raise
(
e
)
e
.
set_backtrace
(
e
.
backtrace
.
first
(
BACKTRACE_LIMIT
))
raise
e
def
limit_backtrace_and_raise
(
exception
)
exception
.
set_backtrace
(
exception
.
backtrace
.
first
(
BACKTRACE_LIMIT
))
raise
exception
end
# rubocop:enable Naming/MethodParameterName
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment