We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 833e068 + 2cadebb commit b2c6612Copy full SHA for b2c6612
console/config/initializers/rest_api.rb
@@ -4,12 +4,14 @@
4
5
RestApi::LogSubscriber.attach_to :active_resource
6
7
-begin
8
- info = RestApi.info
9
- Rails.logger.info "Connected to #{info.url} with version #{info.version}"
10
-rescue Exception => e
11
- puts e if Rails.env.development?
12
- Rails.logger.warn e.message
+unless Rails.env.production?
+ begin
+ info = RestApi.info
+ Rails.logger.info "Connected to #{info.url} with version #{info.version}"
+ rescue Exception => e
+ puts e if Rails.env.development?
13
+ Rails.logger.warn e.message
14
+ end
15
end
16
17
ActiveSupport.on_load(:action_controller) do
0 commit comments