This makes console printing smarter when -printtoconsole
is not explicitly set. The new behavior:
- The series of newline separators that we send to the log when starting up are only sent to
debug.log
, never to stdout. - Logging to stdout is set up by default when the process is not a daemon.
The motivation for this change is that I almost always run bitcoind in foreground mode when I’m debugging or doing development work, and the new behavior makes checking log statements a lot easier in that situation. I think these semantics are also more similar to the default behavior of many other Unix programs.