summaryrefslogtreecommitdiff
path: root/config/initializers/grpc.rb
blob: 66b212ef131e77030f7f3264b0e7a06483890cab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

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