aboutsummaryrefslogtreecommitdiff
path: root/src/proxy_config.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 13:28:07 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 13:28:07 +0100
commitc49b2075a30460a319ce53da300e4943d45d5add (patch)
tree2c9e146b89873f1b79e2a7397c567e1e82299b34 /src/proxy_config.rs
parent35b46e64e7c9a176aeadb5815a609847bb237bb3 (diff)
downloadtricot-c49b2075a30460a319ce53da300e4943d45d5add.tar.gz
tricot-c49b2075a30460a319ce53da300e4943d45d5add.zip
Try to fix things
Diffstat (limited to 'src/proxy_config.rs')
-rw-r--r--src/proxy_config.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/proxy_config.rs b/src/proxy_config.rs
index dd7a357..a15c143 100644
--- a/src/proxy_config.rs
+++ b/src/proxy_config.rs
@@ -136,6 +136,8 @@ fn parse_tricot_add_header_tag(tag: &str) -> Option<(String, String)> {
}
fn parse_consul_catalog(catalog: &ConsulNodeCatalog) -> Vec<ProxyEntry> {
+ trace!("Parsing node catalog: {:#?}", catalog);
+
let mut entries = vec![];
for (_, svc) in catalog.services.iter() {
@@ -168,6 +170,11 @@ fn parse_consul_catalog(catalog: &ConsulNodeCatalog) -> Vec<ProxyEntry> {
}
}
+ trace!("Result of parsing catalog:");
+ for ent in entries.iter() {
+ trace!(" {}", ent);
+ }
+
entries
}