Skip to content

Commit

Permalink
fix: escape new lines in client-provided logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dufkan committed May 5, 2024
1 parent 3490112 commit a0c6f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interfaces/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ impl MeeSign for MeeSignService {
.as_ref()
.map(utils::hextrunc)
.unwrap_or_else(|| "unknown".to_string());
let message = request.into_inner().message;
let message = request.into_inner().message.replace('\n', "\\n");
debug!("LogRequest device_id={} message={}", device_str, message);

if device_id.is_some() {
Expand Down

0 comments on commit a0c6f5e

Please sign in to comment.