Closed
Description
Description
We seem to output block graffiti to the logs without escaping or removing unprintable characters, which causes text-based tools like grep
to choke up:
$ grep 'graffiti' medalla_bn.log
Binary file medalla_bn.log matches
(You need to re-run with grep --text
)
It looks like we make some attempt to sanitize the graffiti, but it doesn't seem to be working as intended. An alternative approach might involve stripping \0
from the end of the string, and processing the rest with String::from_utf8_lossy
lighthouse/beacon_node/beacon_chain/src/beacon_chain.rs
Lines 1305 to 1306 in dfd02d6