flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [01/38] git commit: [flex-utilities] [refs/heads/master] - FLEX-34624 add more logging
Date Wed, 30 Mar 2016 05:13:31 GMT
Repository: flex-utilities
Updated Branches:
  refs/heads/master 4f128cce4 -> 48905dd2f


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/master
Commit: 75e929adb285da72c4723257b3be15c2d1c976e4
Parents: f77ed26
Author: Justin Mclean <jmclean@apache.org>
Authored: Sat Oct 25 15:43:58 2014 +1100
Committer: Justin Mclean <jmclean@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();


Mime
View raw message