mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-29 12:17:00 +00:00
Avoid Printing Binary String to Logs (#1576)
Converts the graffiti binary data to string before printing to logs. ## Issue Addressed #1566 ## Proposed Changes Rather than converting graffiti to a vector the binary data less the last character is passed to String::from_utf_lossy(). This then allows us to call the to_string() function directly to give us the string ## Additional Info Rust skills are fairly weak
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -348,6 +348,7 @@ dependencies = [
|
||||
"rand 0.7.3",
|
||||
"rand_core 0.5.1",
|
||||
"rayon",
|
||||
"regex",
|
||||
"safe_arith",
|
||||
"serde",
|
||||
"serde_derive",
|
||||
|
||||
Reference in New Issue
Block a user