Update user-agent parser and tests
Fix some logger calls to be more efficient