Skip to content

Commit

Permalink
just log WS logs
Browse files Browse the repository at this point in the history
  • Loading branch information
noisyscanner committed Oct 22, 2024
1 parent c7d5a03 commit 9d1cb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/src/logprocessor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ async fn handle_websocket_log(log: &BaseLog, metric_obj: &Telemetry) {
}

pub async fn log_processor(logline: &String, metric_obj: &Telemetry, tracer: &trace::Tracer) {
println!("{}", logline);
metric_obj.LOG_LINES_COUNTER_TOTAL.inc();
let log_result = from_str::<BaseLog>(logline);
match log_result {
Expand All @@ -202,6 +201,7 @@ pub async fn log_processor(logline: &String, metric_obj: &Telemetry, tracer: &tr
handle_http_log(&log,metric_obj).await;
}
"websocket-log" => {
println!("Got WS log: {}", logline);
handle_websocket_log(&log,metric_obj).await;
}
_ => {}
Expand Down

0 comments on commit 9d1cb7a

Please sign in to comment.