Fixed an XTrace logging bug