Skip to content

Commit

Permalink
fix(socket source): Remove debugging prints left in
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg authored and jszwedko committed Jun 9, 2022
1 parent 9b2ecaf commit 2cc4cbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
20 changes: 4 additions & 16 deletions src/sources/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1121,16 +1121,10 @@ mod test {
match meta.permissions().mode() {
// S_IFSOCK 0140000 socket
0o140555 => ready(true),
perm => {
println!("socket has different permissions: {:?}", perm);
ready(false)
}
_ => ready(false),
}
}
Err(_) => {
println!("socket doesn't exist yet");
ready(false)
}
Err(_) => ready(false),
}
})
.await;
Expand Down Expand Up @@ -1243,16 +1237,10 @@ mod test {
match meta.permissions().mode() {
// S_IFSOCK 0140000 socket
0o140421 => ready(true),
perm => {
println!("socket has different permissions: {:?}", perm);
ready(false)
}
_ => ready(false),
}
}
Err(_) => {
println!("socket doesn't exist yet");
ready(false)
}
Err(_) => ready(false),
}
})
.await;
Expand Down
2 changes: 0 additions & 2 deletions src/sources/util/unix_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ pub fn build_unix_stream_source(
shutdown: ShutdownSignal,
out: SourceSender,
) -> crate::Result<Source> {
dbg!("hello");
Ok(Box::pin(async move {
dbg!("creating");
let listener = UnixListener::bind(&listen_path).expect("Failed to bind to listener socket");
info!(message = "Listening.", path = ?listen_path, r#type = "unix");

Expand Down

0 comments on commit 2cc4cbb

Please sign in to comment.