delete log space
This commit is contained in:
@@ -71,7 +71,7 @@ fn main() {
|
|||||||
.cmd("help", "Print help information")
|
.cmd("help", "Print help information")
|
||||||
.cmd("version", "Print version information")
|
.cmd("version", "Print version information")
|
||||||
.opt("-c", "Specify a config file")
|
.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") {
|
let config_path = match app.value("-c") {
|
||||||
Some(values) => {
|
Some(values) => {
|
||||||
@@ -289,7 +289,7 @@ async fn watch_config(p: PathBuf, t: u64) {
|
|||||||
async fn run_server(addr: SocketAddr) {
|
async fn run_server(addr: SocketAddr) {
|
||||||
let socket = match UdpSocket::bind(&addr).await {
|
let socket = match UdpSocket::bind(&addr).await {
|
||||||
Ok(socket) => {
|
Ok(socket) => {
|
||||||
println!("Start listening to '{}'", addr);
|
info!("Start listening to '{}'", addr);
|
||||||
socket
|
socket
|
||||||
}
|
}
|
||||||
Err(err) => exit!("Binding '{}' failed\n{:?}", addr, err),
|
Err(err) => exit!("Binding '{}' failed\n{:?}", addr, err),
|
||||||
|
|||||||
Reference in New Issue
Block a user