Skip to content

Commit

Permalink
Removed babel dump info logs
Browse files Browse the repository at this point in the history
this caused logging errors with compressed log sink, which didn't want
to accept such long lines. This is a general issue that needs fixing
with the logging system.
  • Loading branch information
Pranay Tulugu authored and jkilpatr committed Sep 21, 2021
1 parent 695b475 commit d4521a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions babel_monitor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fn read_babel(
previous_contents: String,
depth: usize,
) -> Result<String, Error> {
info!(
trace!(
"starting read babel with {} and {}",
previous_contents, depth
);
Expand Down Expand Up @@ -191,7 +191,7 @@ fn read_babel(
}
let output = output.unwrap();
let output = output.trim_matches(char::from(0));
info!(
trace!(
"Babel monitor got {} bytes with the message {}",
bytes, output
);
Expand Down Expand Up @@ -494,7 +494,7 @@ pub fn parse_routes(stream: &mut TcpStream) -> Result<Vec<Route>, Error> {
pub fn parse_routes_sync(babel_out: String) -> Result<Vec<Route>, Error> {
let mut vector: Vec<Route> = Vec::with_capacity(20);
let mut found_route = false;
info!("Got from babel dump: {}", babel_out);
trace!("Got from babel dump: {}", babel_out);

for entry in babel_out.split('\n') {
if entry.contains("add route") {
Expand Down

0 comments on commit d4521a2

Please sign in to comment.