Skip to content

Commit

Permalink
set chrono features, cleanup, less logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jb-alvarado committed Jun 19, 2023
1 parent 8eb5c2b commit 4a578e8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ffplayout-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ffplayout-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 1 addition & 3 deletions ffplayout-engine/src/rpc/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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" => {
Expand Down Expand Up @@ -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");

Expand Down
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions lib/src/utils/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4a578e8

Please sign in to comment.