spec/timber/cli/installers/rails_spec.rb in timber-2.1.6 vs spec/timber/cli/installers/rails_spec.rb in timber-2.1.7
- old
+ new
@@ -93,10 +93,12 @@
exactly(1).times.
and_return(:send)
expected_code = <<-CODE
# Install the Timber.io logger
- send_logs_to_timber = true # <---- set to false to stop sending dev logs to Timber.io
+ send_logs_to_timber = true # <---- Set to false to stop sending development logs to Timber.io.
+ # But do not remove the logger code below! The log_device should
+ # be set to STDOUT if you want to disable sending logs.
log_device = send_logs_to_timber ? Timber::LogDevices::HTTP.new('#{app.api_key}') : STDOUT
logger = Timber::Logger.new(log_device)
logger.level = config.log_level
config.logger = #{logger_code}