mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-17 15:58:16 -05:00
Merge pull request #14653 from Tilka/net_accept
IOS/Network: reduce log verbosity of SO_EAGAIN to info level
This commit is contained in:
@@ -117,10 +117,12 @@ s32 WiiSockMan::GetNetErrorCode(s32 ret, std::string_view caller, bool is_rw)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ERROR_LOG_FMT(IOS_NET, "{} failed with error {}: {}, ret= {}", caller, error_code,
|
||||
Common::DecodeNetworkError(error_code), ret);
|
||||
|
||||
const s32 return_value = TranslateErrorCode(error_code, is_rw);
|
||||
const auto level =
|
||||
return_value == -SO_EAGAIN ? Common::Log::LogLevel::LINFO : Common::Log::LogLevel::LERROR;
|
||||
GENERIC_LOG_FMT(Common::Log::LogType::IOS_NET, level, "{} failed with error {}: {}, ret = {}",
|
||||
caller, error_code, Common::DecodeNetworkError(error_code), ret);
|
||||
|
||||
SetLastNetError(return_value);
|
||||
|
||||
return return_value;
|
||||
|
||||
Reference in New Issue
Block a user