Skip to content

Commit

Permalink
remove leftover debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesteensen committed May 16, 2019
1 parent 7bcf665 commit 74e9649
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/transforms/log_to_metric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Transform for LogToMetric {
let event = event.into_log();

for counter in self.config.counters.iter() {
if let Some(val) = dbg!(event.get(&counter.field)) {
if let Some(val) = event.get(&counter.field) {
if counter.parse_value {
if let Ok(val) = val.to_string_lossy().parse() {
return Some(Event::Metric(Metric::Counter {
Expand Down Expand Up @@ -115,7 +115,7 @@ mod tests {

let transform = LogToMetric::new(config());

let metric = dbg!(transform.transform(log)).unwrap();
let metric = transform.transform(log).unwrap();
assert_eq!(
metric.into_metric(),
Metric::Counter {
Expand All @@ -134,7 +134,7 @@ mod tests {

let transform = LogToMetric::new(config());

let metric = dbg!(transform.transform(log)).unwrap();
let metric = transform.transform(log).unwrap();
assert_eq!(
metric.into_metric(),
Metric::Counter {
Expand All @@ -152,7 +152,7 @@ mod tests {

let transform = LogToMetric::new(config());

let metric = dbg!(transform.transform(log)).unwrap();
let metric = transform.transform(log).unwrap();
assert_eq!(
metric.into_metric(),
Metric::Gauge {
Expand Down

0 comments on commit 74e9649

Please sign in to comment.