delete log space

This commit is contained in:
wyhaya
2019-10-18 09:12:28 +08:00
parent 8b16ad98ab
commit 3fcf503a4f

View File

@@ -71,7 +71,7 @@ fn main() {
.cmd("help", "Print help information")
.cmd("version", "Print version information")
.opt("-c", "Specify a config file")
.opt("-w", "Check the interval of the configuration file");
.opt("-w", "Check the interval of the configuration file (ms)");
let config_path = match app.value("-c") {
Some(values) => {
@@ -289,7 +289,7 @@ async fn watch_config(p: PathBuf, t: u64) {
async fn run_server(addr: SocketAddr) {
let socket = match UdpSocket::bind(&addr).await {
Ok(socket) => {
println!("Start listening to '{}'", addr);
info!("Start listening to '{}'", addr);
socket
}
Err(err) => exit!("Binding '{}' failed\n{:?}", addr, err),