Fix bug in challenge module about component index. Also add some LOG points

Change-Id: I8ec737ef9d7177becbe84055efa2438efab02225
diff --git a/src/client-module.cpp b/src/client-module.cpp
index fe4eb72..157f28d 100644
--- a/src/client-module.cpp
+++ b/src/client-module.cpp
@@ -187,6 +187,9 @@
   }
 
   JsonSection json = getJsonFromData(reply);
+
+  _LOG_TRACE("SELECT response would change the status from " << state->m_status << " to " + json.get<std::string>(JSON_STATUS));
+
   state->m_status = json.get<std::string>(JSON_STATUS);
 
   if (!checkStatus(*state, json, errorCallback)) {
@@ -393,7 +396,8 @@
     return false;
   }
   if (state.m_requestId.empty() || state.m_status.empty()) {
-    errorCallback("The response does not carry required fields.");
+    errorCallback("The response does not carry required fields. requestID: " + state.m_requestId
+                  + " status: " + state.m_status);
     return false;
   }
   return true;