Bug fix - fix old ref to local logger variable