Bitcoin Forum
December 14, 2024, 03:00:47 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Suppressing useless messages from debug.log  (Read 1061 times)
.anto. (OP)
Full Member
***
Offline Offline

Activity: 179
Merit: 131


View Profile
January 05, 2016, 11:21:21 PM
 #1

I have been running full nodes for quite sometime now. I have added another full node in the last few weeks and I have upgraded the bitcoind to version 0.11.2. Everything is running fine except that I cannot figure out how to suppress the useless messages like below from being inserted into the debug.log file.
Code:
.
2016-01-05 22:51:17 ERROR: AcceptToMemoryPool: nonstandard transaction: dust
2016-01-05 22:51:24 ERROR: AcceptToMemoryPool: free transaction rejected by rate limiter
2016-01-05 22:51:24 ERROR: AcceptToMemoryPool: free transaction rejected by rate limiter
2016-01-05 22:51:31 ERROR: AcceptToMemoryPool: free transaction rejected by rate limiter
2016-01-05 22:51:31 ERROR: AcceptToMemoryPool: nonstandard transaction: dust
2016-01-05 22:51:33 ERROR: AcceptToMemoryPool: free transaction rejected by rate limiter
2016-01-05 22:51:43 ERROR: AcceptToMemoryPool: free transaction rejected by rate limiter
2016-01-05 22:51:48 ERROR: AcceptToMemoryPool: free transaction rejected by rate limiter
.

The bitcoin documentation mention the following options, but I cannot find any more detail information about what each category does and how to set them.
Code:
-debug=<category>   Output debugging information (default: 0, supplying <category> is optional)  
                    If <category> is not supplied, output all debugging information. 
                    <category> can be: addrman, alert, bench, coindb, db, lock, rand, rpc, selectcoins, mempool, net.

Which category is related the above messages? And could I actually use multiple categories, e.g. debug=addrman,bench,coindb, except the category of the above messages?

As the type of the above messages is ERROR message and if I would suppress such messages, would that mean I will not see other ERROR messages that are important?

Thanks in advance for your help.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
January 05, 2016, 11:32:08 PM
 #2

The category for that message would be mempool. If you don't want it, then I think you will need to specify everything except mempool.

.anto. (OP)
Full Member
***
Offline Offline

Activity: 179
Merit: 131


View Profile
January 05, 2016, 11:37:09 PM
 #3

The category for that message would be mempool. If you don't want it, then I think you will need to specify everything except mempool.

Thanks a lot for responding my questions.

How about my second question? If would set the debug not to record any messages of mempool category, does that mean I will not get any other important messages?

And what are the type of messages of mempool category? Is there any documentation about this? Or do we have to dig up the source on https://github.com/bitcoin/bitcoin?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
January 06, 2016, 12:10:50 AM
 #4

The category for that message would be mempool. If you don't want it, then I think you will need to specify everything except mempool.

Thanks a lot for responding my questions.

How about my second question? If would set the debug not to record any messages of mempool category, does that mean I will not get any other important messages?

And what are the type of messages of mempool category? Is there any documentation about this? Or do we have to dig up the source on https://github.com/bitcoin/bitcoin?
Actually it is not part of mempool. In fact it has no category, it is just Error. I don't think there are docs on this, I had to dig through the source code. And if you could somehow suppress the Error type, then you would be suppressing all of them, including ones that would matter.

.anto. (OP)
Full Member
***
Offline Offline

Activity: 179
Merit: 131


View Profile
January 06, 2016, 12:27:18 AM
 #5

Actually it is not part of mempool. In fact it has no category, it is just Error. I don't think there are docs on this, I had to dig through the source code. And if you could somehow suppress the Error type, then you would be suppressing all of them, including ones that would matter.

Thanks for your help.

I have also just been digging up the source (with my limited C programming knowledge), with the hope that I could just remark the commands related to those messages and re-compile bitcoind. But it seems to be more complicated than just remarking them. I guess I have to live with this for a while. It is just an annoying issue anyway.
SISAR
Hero Member
*****
Offline Offline

Activity: 651
Merit: 518



View Profile
January 06, 2016, 12:35:27 AM
 #6

Just add printtoconsole=1 to bitcoin.conf and enjoy no new data added to debug.log file, there is nothing realy interesting to see there anyway.
.anto. (OP)
Full Member
***
Offline Offline

Activity: 179
Merit: 131


View Profile
January 06, 2016, 12:47:58 AM
 #7

Just add printtoconsole=1 to bitcoin.conf and enjoy no new data added to debug.log file, there is nothing realy interesting to see there anyway.

Thanks. But I still need to have the debug.log for figuring out the reasons of any issues on my full nodes, e.g. bitcoind crashes, database corruptions, naughty peers, etc.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
January 06, 2016, 10:42:08 AM
 #8

Just add printtoconsole=1 to bitcoin.conf and enjoy no new data added to debug.log file, there is nothing realy interesting to see there anyway.

Thanks. But I still need to have the debug.log for figuring out the reasons of any issues on my full nodes, e.g. bitcoind crashes, database corruptions, naughty peers, etc.

Accept (or not accept) to mempool messages can be interesting as well. I recently had a node run by "mytrezor" connected to mine. They send >>2k TX every 30 minutes within a few seconds, sometimes close to 4k TX. Since the node is not very powerful and the scripts for the start start on a full minute as well they could not finish in time. Once I knew what was going on I just accepted the gaps in the stats, but without those logs I would probably still wondering what was going on. After the last reboot a few days ago the mytrezor node is no longer connected to mine.

If you want a small .log file I would rather trim it.

Im not really here, its just your imagination.
shensu
Member
**
Offline Offline

Activity: 86
Merit: 10


View Profile
October 31, 2017, 01:33:25 AM
 #9

The category for that message would be mempool. If you don't want it, then I think you will need to specify everything except mempool.

Thanks a lot for responding my questions.

How about my second question? If would set the debug not to record any messages of mempool category, does that mean I will not get any other important messages?

And what are the type of messages of mempool category? Is there any documentation about this? Or do we have to dig up the source on https://github.com/bitcoin/bitcoin?

To answer the question about logging specific categories, they must all be listed on their own line. For example:

Code:
debug=addrman
debug=alert
debug=bench
# ... etc
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!