Use error_log fn for logging