From edefa8fb8aa553c7b8490ffde30b3c78442324a8 Mon Sep 17 00:00:00 2001 From: Alexander Rodin Date: Thu, 8 Aug 2019 16:24:30 +0000 Subject: [PATCH] Remove debug logging Signed-off-by: Alexander Rodin --- src/transforms/javascript.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/transforms/javascript.rs b/src/transforms/javascript.rs index bc98595279828..139784cb884ef 100644 --- a/src/transforms/javascript.rs +++ b/src/transforms/javascript.rs @@ -195,12 +195,6 @@ impl JavaScript { pub fn process(&self, output: &mut Vec, event: Event) -> Result<(), String> { let encoded = encode(event)?; - println!("encoded: {}", encoded); - // println!( - // r"__vector_encode({}(__vector_decode({})))", - // self.handler, - // serde_json::to_string(&encoded).unwrap(), - // ); let transformed: String = self .ctx .eval_as(&format!( @@ -209,7 +203,6 @@ impl JavaScript { serde_json::to_string(&encoded).unwrap(), )) .map_err(|err| format!("Runtime error in JavaScript code: {}", err))?; - println!("transformed: {}", transformed); decode_and_write(&transformed, output)?; Ok(()) } @@ -321,7 +314,7 @@ impl Transform for JavaScript { fn transform_into(&mut self, output: &mut Vec, event: Event) { self.process(output, event).unwrap_or_else(|err| { - println!("Error in JavaScript transform; discarding event\n{}", err) + error!("Error in JavaScript transform; discarding event\n{}", err) }); } }