error log still not working as expected