From 09aa7d9ec336a4aa37126353b55b9c249b442238 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 30 Dec 2015 14:57:46 +0100 Subject: [PATCH] Add debug output to text-from-header fetcher function --- src/module/helpers/header/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/module/helpers/header/mod.rs b/src/module/helpers/header/mod.rs index ffbbd6c0..367f845c 100644 --- a/src/module/helpers/header/mod.rs +++ b/src/module/helpers/header/mod.rs @@ -52,11 +52,12 @@ pub mod data { } }).and_then(|urlkey| { match urlkey.deref().clone() { - FHD::Key{name: _, value: ref v} => { + FHD::Key{name: ref n, value: ref v} => { match v.deref().clone() { FHD::Text(s) => Some(s), _ => { warn!("Malformed Header Data: Expected Text, found non-Text"); + debug!(" in {}", n); None }, }