1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test
Markus Doits 889a7ccf08
Allow to explicitly specify whether to output Rails' log to stdout
Before Rails' logger output is mirrored to std out if:

* environment is development and
* the process is not daemonized

It was not possible to change that behaviour, e.g. to disable log output
in that case or enable it in other cases.

Now you can explicitly disable or enable output with the new command
line switch `--log-to-stdout`, regardless of any other circumstances.

```
// enable output in production
rails server -e production --log-to-stdout

// disable output in development
rails server -e development --no-log-to-stdout
```

Enabling output when daemonized still makes no sense (since tty is
detached), but this is ignored for now.

If the command line flag is not specified, old behaviour still
applies, so this change is completely backward compatible.
2018-07-08 17:28:34 +02:00
..
application Include ActiveSupport::Testing::MethodCallAssertions in railties/test/isolation/abstract_unit.rb 2018-06-09 00:00:28 +03:00
command Use did_you_mean spell checker for option suggestions 2018-03-23 11:36:03 +02:00
commands Allow to explicitly specify whether to output Rails' log to stdout 2018-07-08 17:28:34 +02:00
configuration
engine
fixtures/lib
generators Merge pull request #32706 from yhirano55/fix-app-update-when-hyphenated-name-is-given 2018-07-01 19:05:01 +02:00
isolation Include ActiveSupport::Testing::MethodCallAssertions in railties/test/isolation/abstract_unit.rb 2018-06-09 00:00:28 +03:00
minitest rubocop single space after assignment 2018-02-19 11:23:47 +05:30
railties Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
test_unit Need to use klass to get the class name of the test result 2018-01-03 17:37:15 +09:00
abstract_unit.rb
app_loader_test.rb OS X -> macOS [Closes #30313] 2018-06-23 08:46:40 +02:00
backtrace_cleaner_test.rb
code_statistics_calculator_test.rb
code_statistics_test.rb
console_helpers.rb
engine_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
env_helpers.rb
generators_test.rb Remove unnecessary test 2018-06-03 20:53:05 +09:00
initializable_test.rb
json_params_parsing_test.rb
path_generation_test.rb
paths_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
rack_logger_test.rb Fix test added in #32444 2018-04-06 14:00:13 +03:00
rails_info_controller_test.rb
rails_info_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
secrets_test.rb
version_test.rb