bitcoin/bitcoin — pull request #1311 by rebroad (2012-05-14 23:08:27+00:00)
Title: Improve debug.log output.

This change improves debug.log output in the following ways:-

It reduces some duplicate output, and no longer needed output (which was originally added for testing).

It reduces the verbosity of output during initial block download, so rather than showing every block requested, it summarises. Once caught up, the previously level of verbosity is restored.

Information about the nodes connected are shown, and additional information about errors (particularly rejected transactions) are shown, with the offending peer alongside.

Recent changes which add many lines, such as address handling have been kept in as this code is still relatively new - I was tempted to comment out various lines such as the "tried...", etc.

Timestamps is now enabled by default. -nologtimestamps or logtimestamps=0 will disable this.

Also, rename AlreadyAskedFor to AlreadyWaitingFor (makes more sense, as can cease waiting, but cannot stop having done a past thing.)