added logging to fgetattr