stacks-blockchain-api
stacks-blockchain-api copied to clipboard
Some errors/warnings are printed twice to the log
Describe the bug It seems some errors may be printing in plain text and in JSON when they occur, resulting in excessive duplicate logs. Some example logs where I'm seeing this happen:
Error: invalid STX address "SP73NSFKVAE29X7P7EDZ3BK4MQ0V9X9Z4B8HZAF"
Error: Hex string is an odd number of digits: 0xundefined
Error: 'limit' must be equal to or less than 50
There may be other places where this is happening, so ideally we'd be able to recognize a pattern based on the 3 provided examples and search for the problem elsewhere in the codebase and fix those too.