Use error_log isntead of print