Add debug output to text-from-header fetcher function

This commit is contained in:
Matthias Beyer 2015-12-30 14:57:46 +01:00
parent d15d50d8a2
commit 09aa7d9ec3

View file

@ -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
}, },
} }