Skip to content

Commit

Permalink
Remove debug logging
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Rodin <rodin.alexander@gmail.com>
  • Loading branch information
a-rodin committed Aug 8, 2019
1 parent 8745a87 commit edefa8f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/transforms/javascript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,6 @@ impl JavaScript {

pub fn process(&self, output: &mut Vec<Event>, 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!(
Expand All @@ -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(())
}
Expand Down Expand Up @@ -321,7 +314,7 @@ impl Transform for JavaScript {

fn transform_into(&mut self, output: &mut Vec<Event>, 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)
});
}
}
Expand Down

0 comments on commit edefa8f

Please sign in to comment.