set chrono features, cleanup, less logging

This commit is contained in:
jb-alvarado 2023-06-19 20:48:50 +02:00
parent 8eb5c2ba02
commit 4a578e83ff
5 changed files with 5 additions and 6 deletions

View File

@ -16,7 +16,7 @@ actix-web = "4"
actix-web-grants = "3"
actix-web-httpauth = "0.6"
argon2 = "0.4"
chrono = "0.4"
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
clap = { version = "4.3", features = ["derive"] }
derive_more = "0.99"
faccess = "0.2"

View File

@ -12,7 +12,7 @@ default-run = "ffplayout"
[dependencies]
ffplayout-lib = { path = "../lib" }
chrono = "0.4"
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
clap = { version = "4.3", features = ["derive"] }
crossbeam-channel = "0.5"
futures = "0.3"

View File

@ -410,8 +410,6 @@ fn build_response(
) {
if let Ok(body) = read_request_body(&mut request) {
if let Ok(data) = serde_json::from_str::<HashMap<String, serde_json::Value>>(&body) {
debug!("Received JSON request: {:?}", data);
if let Some(control_value) = data.get("control").and_then(|c| c.as_str()) {
match control_value {
"back" => {
@ -513,7 +511,7 @@ pub fn run_server(
) {
let addr = config.rpc_server.address.clone();
// info!("Server listening on {addr}");
info!("RPC server listening on {addr}");
let server = Server::http(addr).expect("Failed to start server");

View File

@ -9,7 +9,7 @@ repository.workspace = true
edition.workspace = true
[dependencies]
chrono = "0.4"
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
crossbeam-channel = "0.5"
ffprobe = "0.3"
file-rotate = "0.7.0"

View File

@ -189,6 +189,7 @@ pub fn init_logging(
.add_filter_ignore_str("sqlx")
.add_filter_ignore_str("reqwest")
.add_filter_ignore_str("rpc")
.add_filter_ignore_str("tiny_http")
.set_level_padding(LevelPadding::Left)
.set_time_level(time_level)
.clone();