Add debug output to text-from-header fetcher function
This commit is contained in:
parent
d15d50d8a2
commit
09aa7d9ec3
1 changed files with 2 additions and 1 deletions
|
@ -52,11 +52,12 @@ pub mod data {
|
||||||
}
|
}
|
||||||
}).and_then(|urlkey| {
|
}).and_then(|urlkey| {
|
||||||
match urlkey.deref().clone() {
|
match urlkey.deref().clone() {
|
||||||
FHD::Key{name: _, value: ref v} => {
|
FHD::Key{name: ref n, value: ref v} => {
|
||||||
match v.deref().clone() {
|
match v.deref().clone() {
|
||||||
FHD::Text(s) => Some(s),
|
FHD::Text(s) => Some(s),
|
||||||
_ => {
|
_ => {
|
||||||
warn!("Malformed Header Data: Expected Text, found non-Text");
|
warn!("Malformed Header Data: Expected Text, found non-Text");
|
||||||
|
debug!(" in {}", n);
|
||||||
None
|
None
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue