Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
2121e3b1
Commit
2121e3b1
authored
Apr 18, 2018
by
Marc Shaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
44790: Disable the action mailer base logging when emails are disabled
parent
fe0ebf76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
config/initializers/disable_email_interceptor.rb
config/initializers/disable_email_interceptor.rb
+4
-1
No files found.
config/initializers/disable_email_interceptor.rb
View file @
2121e3b1
# Interceptor in lib/disable_email_interceptor.rb
ActionMailer
::
Base
.
register_interceptor
(
DisableEmailInterceptor
)
unless
Gitlab
.
config
.
gitlab
.
email_enabled
unless
Gitlab
.
config
.
gitlab
.
email_enabled
ActionMailer
::
Base
.
register_interceptor
(
DisableEmailInterceptor
)
ActionMailer
::
Base
.
logger
=
nil
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment