Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Greenlight
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
Container 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arbeitsgruppe Hardwarenahe IT-Systeme
Greenlight
Commits
0bbd9e28
Unverified
Commit
0bbd9e28
authored
1 year ago
by
Ahmad Farhat
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove active_record_serializer logs in prod (#5520)
parent
65766d46
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Gemfile.lock
+0
-6
0 additions, 6 deletions
Gemfile.lock
config/environments/production.rb
+3
-7
3 additions, 7 deletions
config/environments/production.rb
config/initializers/active_model_serializers.rb
+19
-0
19 additions, 0 deletions
config/initializers/active_model_serializers.rb
with
22 additions
and
13 deletions
Gemfile.lock
+
0
−
6
View file @
0bbd9e28
...
...
@@ -538,9 +538,3 @@ DEPENDENCIES
web-console (>= 4.2.1)
webdrivers
webmock
RUBY VERSION
ruby 3.0.0p0
BUNDLED WITH
2.2.3
This diff is collapsed.
Click to expand it.
config/environments/production.rb
+
3
−
7
View file @
0bbd9e28
...
...
@@ -135,17 +135,13 @@ Rails.application.configure do
# require "syslog/logger"
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name")
if
ENV
[
'RAILS_LOG_TO_STDOUT'
].
present?
$stdout
.
sync
=
true
logger
=
ActiveSupport
::
Logger
.
new
(
$stdout
)
logger
.
formatter
=
config
.
log_formatter
config
.
logger
=
ActiveSupport
::
TaggedLogging
.
new
(
logger
)
end
if
ENV
[
'RAILS_LOG_REMOTE_NAME'
]
&&
ENV
[
'RAILS_LOG_REMOTE_PORT'
]
require
'remote_syslog_logger'
logger_program
=
ENV
[
'RAILS_LOG_REMOTE_TAG'
]
||
"greenlight-v3-
#{
ENV
.
fetch
(
'RAILS_ENV'
,
nil
)
}
"
logger
=
RemoteSyslogLogger
.
new
(
ENV
[
'RAILS_LOG_REMOTE_NAME'
],
ENV
[
'RAILS_LOG_REMOTE_PORT'
],
program:
logger_program
)
else
$stdout
.
sync
=
true
logger
=
ActiveSupport
::
Logger
.
new
(
$stdout
)
end
logger
.
formatter
=
config
.
log_formatter
...
...
This diff is collapsed.
Click to expand it.
config/initializers/active_model_serializers.rb
0 → 100644
+
19
−
0
View file @
0bbd9e28
# BigBlueButton open source conferencing system - http://www.bigbluebutton.org/.
#
# Copyright (c) 2022 BigBlueButton Inc. and by respective authors (see below).
#
# This program is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free Software
# Foundation; either version 3.0 of the License, or (at your option) any later
# version.
#
# Greenlight is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with Greenlight; if not, see <http://www.gnu.org/licenses/>.
# frozen_string_literal: true
ActiveModelSerializers
.
logger
=
Logger
.
new
(
IO
::
NULL
)
if
Rails
.
env
.
production?
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