Added a log to the on connect hook.