David Smart / NWSWeather
Revision:
14:bcc80874e824
Parent:
13:a9ac9dde4f7f
Child:
15:c353545f9f13
diff -r a9ac9dde4f7f -r bcc80874e824 NWSWeather.cpp
--- a/NWSWeather.cpp	Mon Nov 30 02:32:56 2015 +0000
+++ b/NWSWeather.cpp	Tue Jan 26 11:55:15 2016 +0000
@@ -131,6 +131,7 @@
             if (!ret) {
                 INFO("ret is %d", ret);
                 if (http.getHTTPResponseCode() >= 300 && http.getHTTPResponseCode() < 400) {
+                    INFO("  http.getHTTPResponseCode(): %d", http.getHTTPResponseCode());
                     retCode = noerror;         // redirection that was not satisfied.
                     break;
                 } else {
@@ -305,7 +306,7 @@
                                 if (WeatherData[i].value.sValue)
                                     swFree(WeatherData[i].value.sValue);
                                 n = strlen(p2)+1;
-                                INFO("  pre- swMalloc");
+                                INFO("  pre- swMalloc(%d)", n);
                                 WeatherData[i].value.sValue = (char *)swMalloc(n);
                                 INFO("  post-swMalloc");
                                 if (WeatherData[i].value.sValue) {
@@ -321,14 +322,14 @@
                                 return badparameter;
                                 //break;
                         }
-                        INFO("pw end");
+                        //INFO("pw end");
                         return noerror;
                     }
                 }
             }
         }
     }
-    INFO("pw end");
+    //INFO("pw end");
     return noparamfound;
 }