You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/10/25 06:44:31 UTC

git commit: [flex-utilities] [refs/heads/develop] - FLEX-34624 add more logging

Repository: flex-utilities
Updated Branches:
  refs/heads/develop f77ed26a3 -> 75e929adb


FLEX-34624 add more logging


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/75e929ad
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/75e929ad
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/75e929ad

Branch: refs/heads/develop
Commit: 75e929adb285da72c4723257b3be15c2d1c976e4
Parents: f77ed26
Author: Justin Mclean <jm...@apache.org>
Authored: Sat Oct 25 15:43:58 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Sat Oct 25 15:43:58 2014 +1100

----------------------------------------------------------------------
 installer/src/InstallApacheFlex.mxml | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/75e929ad/installer/src/InstallApacheFlex.mxml
----------------------------------------------------------------------
diff --git a/installer/src/InstallApacheFlex.mxml b/installer/src/InstallApacheFlex.mxml
index 071bf18..dc12d2b 100644
--- a/installer/src/InstallApacheFlex.mxml
+++ b/installer/src/InstallApacheFlex.mxml
@@ -674,10 +674,20 @@ variables are not required because the locations of these pieces are known.
                 abortInstallation("Unable to load " + Constants.APACHE_FLEX_URL + Constants.CONFIG_XML_NAME);
             }
             
+            _loader.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, xmlLoadStatus, false, 0, true);
             _loader.addEventListener(IOErrorEvent.IO_ERROR, xmlError, false, 0, true);
             _loader.addEventListener(Event.COMPLETE, xmlLoaded, false, 0, true);
         }
         
+        protected function xmlLoadStatus(event:HTTPStatusEvent):void
+        {
+            if (event.status >= 400)
+            {
+                log("Unable to load " + Constants.APACHE_FLEX_URL + Constants.CONFIG_XML_NAME);
+                log("\tServer Status: " + event.status);
+            }
+        }
+        
         protected function xmlError(event:IOErrorEvent):void
         {
             selectDefaultLanguageInEmergency();