summaryrefslogtreecommitdiff
path: root/angelsharkd/src/routes/extensions
diff options
context:
space:
mode:
authorCarpenter, Adam (CORP) <adam.carpenter@adp.com>2021-12-10 11:19:23 -0500
committerCarpenter, Adam (CORP) <adam.carpenter@adp.com>2021-12-10 11:19:23 -0500
commit5e63f0a5ac067630c2ca0d4d0face7f68058906b (patch)
tree9b79e25856a1cd158e62f964cc1f3d777e68e309 /angelsharkd/src/routes/extensions
parent06b01ca2b80359c7a12809d748824b7d3c461a06 (diff)
downloadaltruistic-angelshark-5e63f0a5ac067630c2ca0d4d0face7f68058906b.tar.xz
altruistic-angelshark-5e63f0a5ac067630c2ca0d4d0face7f68058906b.zip
feat: log all encountered errors as well
Diffstat (limited to 'angelsharkd/src/routes/extensions')
-rw-r--r--angelsharkd/src/routes/extensions/simple_deprov.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/angelsharkd/src/routes/extensions/simple_deprov.rs b/angelsharkd/src/routes/extensions/simple_deprov.rs
index df818f0..6e7ca71 100644
--- a/angelsharkd/src/routes/extensions/simple_deprov.rs
+++ b/angelsharkd/src/routes/extensions/simple_deprov.rs
@@ -1,4 +1,5 @@
use libangelshark::{AcmRunner, Message, ParallelIterator};
+use log::error;
use serde::Deserialize;
use std::convert::Infallible;
use warp::{
@@ -48,6 +49,11 @@ async fn remove_entries(entries: Entries, mut runner: AcmRunner) -> Result<impl
.flatten()
.collect();
+ // Log errors for tracking.
+ for error in &errors {
+ error!("deprov error: {}", error);
+ }
+
Ok(reply::json(&errors))
}