Minor refactor for configs (#172)

* Changes shard struct to use vector of ServerConfig

* Adds to query router

* Change client disconnect with error message to warn instead of debug

* Add warning logs for clean up actions
This commit is contained in:
zainkabani
2022-09-22 13:07:02 -04:00
committed by GitHub
parent 85cc2f4147
commit 3a729bb75b
5 changed files with 32 additions and 39 deletions

View File

@@ -37,7 +37,7 @@ extern crate tokio;
extern crate tokio_rustls;
extern crate toml;
use log::{debug, error, info};
use log::{error, info, warn};
use parking_lot::Mutex;
use pgcat::format_duration;
use tokio::net::TcpListener;
@@ -279,7 +279,7 @@ async fn main() {
}
}
debug!("Client disconnected with error {:?}", err);
warn!("Client disconnected with error {:?}", err);
}
};
});