Log bugs

Fixed a couple log bugs, working on resolving result sets.