optimize log message for network error