Modified connection logggin.