Skip to content

Commit 427d77d

Browse files
committed
Use Rails.root.join in README.
`Rails.root.join('log', "#{Rails.env}.log")` is a bit shorter than `File.join(Rails.root, 'log', "#{Rails.env}.log").
1 parent f95e26c commit 427d77d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ stackify-api-ruby starts with start of Rails. Every error, which occurs within y
7171

7272
If you want to redefine <b>logger</b>, you should add
7373

74-
config.logger = ::Stackify::LoggerProxy.new(ActiveSupport::Logger.new(File.join(Rails.root, 'log', "#{Rails.env}.log")))
74+
config.logger = ::Stackify::LoggerProxy.new(ActiveSupport::Logger.new(Rails.root.join('log', "#{Rails.env}.log")))
7575

7676
to your config/environments/%environment%. <b>Note:</b> in this case Stackify#config.log_level will affect entire system.
7777

@@ -129,7 +129,7 @@ Note, "autoreport_last_value_if_nothing_reported" property has influence only on
129129
If there are problems, you can enable internal logging of the stackify-api-ruby project. Uncomment out the config.logger and config.logger.level lines in the 'config/initializers/stackify.rb' file:
130130

131131
```
132-
config.logger = Logger.new(File.join(Rails.root, "log", "stackify.log"))
132+
config.logger = Logger.new(Rails.root.join("log", "stackify.log"))
133133
config.logger.level = Logger::DEBUG
134134
```
135135

0 commit comments

Comments
 (0)