Improve sys-tuner error message

This commit is contained in:
Michael Vines 2020-04-14 12:00:24 -07:00
parent 5298e3872c
commit 892e425d87
1 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,13 @@ pub const SOLANA_SYS_TUNER_PATH: &str = "/tmp/solana-sys-tuner";
pub fn request_realtime_poh() {
info!("Sending tuning request");
let status = unix_socket::UnixStream::connect(SOLANA_SYS_TUNER_PATH);
info!("Tuning request status {:?}", status);
match status {
Ok(_) => info!("Successfully sent tuning request"),
Err(err) => warn!(
"Failed to send tuning request, is `solana-sys-tuner` running? {:?}",
err
),
}
}
#[cfg(not(unix))]