Fixed bug in which connections were not being logged from within an SSL context.