Skip to content

Commit 8fa722c

Browse files
committed
fix log
1 parent 1d564e6 commit 8fa722c

3 files changed

Lines changed: 1 addition & 42 deletions

File tree

src/logging/mod.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@ pub fn init_logging(config: &LogConfig) -> Result<()> {
5050

5151
let subscriber = Registry::default()
5252
.with(log_level)
53-
.with(
54-
fmt::layer()
55-
.with_writer(non_blocking)
56-
.with_ansi(false)
57-
.json(),
58-
)
53+
.with(fmt::layer().with_writer(non_blocking).with_ansi(false))
5954
.with(fmt::layer().with_writer(std::io::stdout).with_ansi(true));
6055

6156
subscriber.init();

src/runtime/output/protocol/kafka/output_sink.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -474,14 +474,6 @@ impl KafkaOutputSink {
474474
) {
475475
// Use into_buffer() to take ownership, avoids extra copy
476476
if let Some(payload) = data.into_buffer() {
477-
let payload_str = String::from_utf8_lossy(&payload);
478-
log::info!(
479-
"Sending to Kafka topic '{}': len={}, payload={}",
480-
config.topic,
481-
payload.len(),
482-
payload_str
483-
);
484-
485477
let mut record: BaseRecord<'_, (), Vec<u8>> =
486478
BaseRecord::to(&config.topic).payload(&payload);
487479

@@ -742,17 +734,6 @@ impl OutputSink for KafkaOutputSink {
742734
// -------------------- collect --------------------
743735

744736
fn collect(&mut self, data: BufferOrEvent) -> Result<(), Box<dyn std::error::Error + Send>> {
745-
// Print current state
746-
let state = self.state.lock().unwrap().clone();
747-
let data_sender_exists = self.data_sender.is_some();
748-
log::info!(
749-
"KafkaOutputSink collect: sink_id={}, topic={}, state={:?}, data_sender_exists={}",
750-
self.sink_id,
751-
self.config.topic,
752-
state,
753-
data_sender_exists
754-
);
755-
756737
// Don't check state in main thread, send data directly to channel
757738
// If runloop is not running, data will be queued in channel
758739
if let Some(ref sender) = self.data_sender {

src/runtime/processor/wasm/wasm_processor.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -241,17 +241,6 @@ impl WasmProcessor for WasmProcessorImpl {
241241
))
242242
})?;
243243

244-
// Call wasm process function
245-
// WIT: export fs-process: func(source-id: u32, data: list<u8>);
246-
let payload_str = String::from_utf8_lossy(&data);
247-
log::info!(
248-
"Calling fs_process: input_index={}, data_len={}, payload={}",
249-
input_index,
250-
data.len(),
251-
payload_str
252-
);
253-
254-
let start = std::time::Instant::now();
255244
processor
256245
.call_fs_process(store, input_index as u32, &data)
257246
.map_err(|e| -> Box<dyn Error + Send> {
@@ -260,12 +249,6 @@ impl WasmProcessor for WasmProcessorImpl {
260249
e
261250
)))
262251
})?;
263-
let elapsed_us = start.elapsed().as_micros();
264-
log::info!(
265-
"fs_process completed: input_index={}, elapsed={}us",
266-
input_index,
267-
elapsed_us
268-
);
269252

270253
log::debug!(
271254
"WasmProcessor '{}' processed {} bytes from input {}",

0 commit comments

Comments
 (0)