Removing error log statments