mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
889a7ccf08
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. |
||
---|---|---|
.. | ||
console_test.rb | ||
credentials_test.rb | ||
dbconsole_test.rb | ||
encrypted_test.rb | ||
notes_test.rb | ||
routes_test.rb | ||
secrets_test.rb | ||
server_test.rb |