gitlab-org--gitlab-foss/config/initializers/grpc.rb
Jacob Vosmaer (GitLab) 2e76c604df Add grpc.log for Gitaly
2017-10-03 11:28:40 +00:00

11 lines
224 B
Ruby

require 'logger'
GRPC_LOGGER = Logger.new(Rails.root.join('log/grpc.log'))
GRPC_LOGGER.level = ENV['GRPC_LOG_LEVEL'].presence || 'WARN'
GRPC_LOGGER.progname = 'GRPC'
module GRPC
def self.logger
GRPC_LOGGER
end
end