Fixed: method log was undefined.