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/commands
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
..
console_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
credentials_test.rb Add an assertion that credentials:edit works when RAILS_MASTER_KEY env is specified 2018-06-24 20:57:41 +09:00
dbconsole_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
encrypted_test.rb Do not add master key when RAILS_MASTER_KEY env specified (#31922) 2018-02-08 19:49:50 +09:00
notes_test.rb Make NotesCommand tests more performant by getting rid of unecessary map 2018-07-05 10:01:46 -04:00
routes_test.rb Rely on Rails::Command's help output. 2018-03-13 20:56:37 +01:00
secrets_test.rb Deprecate encrypted secrets in favor of credentials. 2017-11-12 17:50:09 +01:00
server_test.rb Allow to explicitly specify whether to output Rails' log to stdout 2018-07-08 17:28:34 +02:00