Skip to content
Browse files

Change trace to log statement in PropertyMapper

  • Loading branch information...
1 parent 3b7876f commit a3a449895d714a16c238a3e2581c9a11f1509497 Jens Halm committed Jan 6, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/main/org/spicefactory/lib/xml/mapper/PropertyMapper.as
View
8 src/main/org/spicefactory/lib/xml/mapper/PropertyMapper.as
@@ -15,6 +15,9 @@
*/
package org.spicefactory.lib.xml.mapper {
+
+import org.spicefactory.lib.logging.LogContext;
+import org.spicefactory.lib.logging.Logger;
import org.spicefactory.lib.reflect.ClassInfo;
import org.spicefactory.lib.xml.XmlObjectMapper;
import org.spicefactory.lib.xml.XmlProcessorContext;
@@ -31,6 +34,9 @@ import flash.utils.Dictionary;
*/
public class PropertyMapper extends AbstractXmlObjectMapper implements XmlObjectMapper {
+
+ private static var logger:Logger = LogContext.getLogger(PropertyMapper);
+
private var ignoreUnmappedAttributes:Boolean = false;
private var ignoreUnmappedChildren:Boolean = false;
@@ -117,7 +123,7 @@ public class PropertyMapper extends AbstractXmlObjectMapper implements XmlObject
}
}
catch (error:Error) {
- trace(error.getStackTrace());
+ logger.error("Error mapping XML to object: {0}", error);
hasErrors = true;
context.addError(error);
}

0 comments on commit a3a4498

Please sign in to comment.
Something went wrong with that request. Please try again.