diff --git a/src/oauth.rs b/src/oauth.rs
index c6f913c963436327a61b71f0a0a85f8c2fc30311..39ddd25f11bd7122f30a527f1d9c849e40567c47 100644
--- a/src/oauth.rs
+++ b/src/oauth.rs
@@ -154,11 +154,17 @@ fn get_data(conf: &Config, prefix: &str, endpoint: &str, param: String, token: &
 pub fn get_data_jq<T: for<'de> Deserialize<'de>>(conf: &Config, prefix: &str, endpoint: &str, param: String, token: &BasicTokenResponse, multi: bool) -> Result<T, Box<dyn error::Error>> {
     let res: Option<String> = get_optional(&conf, &full_key(vec![prefix, "maps", endpoint]));
     let jq_code = match res {
-        Some(s) => match multi {
-            true => "map(".to_string() + &s + ")",
-            false => s
+        Some(s) => {
+            debug!("Found jq mapping program for endpoint {}", endpoint);
+            match multi {
+                true => "map(".to_string() + &s + ")",
+                false => s
+            }
         },
-        None => ".".to_string()
+        None => {
+            debug!("No jq mapping program for endpoint {}; using default (no-op)", endpoint);
+            ".".to_string()
+        }
     };
     let mut jq_prog = jq_rs::compile(&jq_code)?;