Log server errors for debugging purposes