Removed error_log() from api