Fix incorrect $log object reference