Skip to content
Snippets Groups Projects
Unverified Commit 0bbd9e28 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Remove active_record_serializer logs in prod (#5520)

parent 65766d46
Branches
Tags
No related merge requests found
......@@ -538,9 +538,3 @@ DEPENDENCIES
web-console (>= 4.2.1)
webdrivers
webmock
RUBY VERSION
ruby 3.0.0p0
BUNDLED WITH
2.2.3
......@@ -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
......
# 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?
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment