rustmisc::log(
request.logger,
rustweb::Priority::Debug,
- "not found",
+ "Not found",
&vec![
rustmisc::KeyValue {
key: "method".to_string(),
// waits (forever) for all of them to complete by joining them all.
let mut set = JoinSet::new();
for config in incoming {
- rustmisc::log(&ctx.logger, rustweb::Priority::Warning, "Config", &vec![]);
for addr_str in &config.addresses {
let addr = match SocketAddr::from_str(addr_str) {
Ok(val) => val,
rustmisc::log(
&ctx.logger,
rustweb::Priority::Info,
- "web service listening",
+ "Web service listening",
&vec![
rustmisc::KeyValue {
key: "address".to_string(),
set.spawn_on(serveweb_async(val, tls, ctx), runtime.handle());
}
Err(err) => {
- let msg = format!("Unable to bind web socket: {}", err);
rustmisc::error(
&ctx.logger,
rustweb::Priority::Error,
value: addr.to_string(),
}],
);
+ let msg = format!("Unable to bind web socket: {}", err);
return Err(std::io::Error::new(ErrorKind::Other, msg));
}
}
&ctx.logger,
rustmisc::Priority::Error,
&msg,
- "rustweb thread exited",
+ "Rustweb thread exited",
&vec![],
);
}
let certfile = std::fs::File::open(filename).map_err(|e| {
std::io::Error::new(
std::io::ErrorKind::Other,
- format!("failed to open {}: {}", filename, e),
+ format!("Failed to open {}: {}", filename, e),
)
})?;
let mut reader = std::io::BufReader::new(certfile);
let keyfile = std::fs::File::open(filename).map_err(|e| {
std::io::Error::new(
std::io::ErrorKind::Other,
- format!("failed to open {}: {}", filename, e),
+ format!("Failed to open {}: {}", filename, e),
)
})?;
let mut reader = std::io::BufReader::new(keyfile);
Ok(None) => Err(
std::io::Error::new(
std::io::ErrorKind::Other,
- format!("failed to parse private key from {}", filename),
+ format!("Failed to parse private key from {}", filename),
)),
Err(e) => Err(e)
}