diff options
author | FearlessTobi <thm.frey@gmail.com> | 2023-08-10 18:02:54 +0200 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2023-08-14 21:23:09 +0200 |
commit | 2694f81462c6ab695bbb3ac1ac77fa795ea394d6 (patch) | |
tree | bd6d0ff232e7afe5c79a1d88023289ad44699040 /src/core/internal_network/network_interface.cpp | |
parent | Merge pull request #11093 from liamwhite/result-ergonomics (diff) | |
download | yuzu-2694f81462c6ab695bbb3ac1ac77fa795ea394d6.tar yuzu-2694f81462c6ab695bbb3ac1ac77fa795ea394d6.tar.gz yuzu-2694f81462c6ab695bbb3ac1ac77fa795ea394d6.tar.bz2 yuzu-2694f81462c6ab695bbb3ac1ac77fa795ea394d6.tar.lz yuzu-2694f81462c6ab695bbb3ac1ac77fa795ea394d6.tar.xz yuzu-2694f81462c6ab695bbb3ac1ac77fa795ea394d6.tar.zst yuzu-2694f81462c6ab695bbb3ac1ac77fa795ea394d6.zip |
Diffstat (limited to 'src/core/internal_network/network_interface.cpp')
-rw-r--r-- | src/core/internal_network/network_interface.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/internal_network/network_interface.cpp b/src/core/internal_network/network_interface.cpp index 4c909a6d3..7c37f660b 100644 --- a/src/core/internal_network/network_interface.cpp +++ b/src/core/internal_network/network_interface.cpp @@ -200,7 +200,14 @@ std::optional<NetworkInterface> GetSelectedNetworkInterface() { }); if (res == network_interfaces.end()) { - LOG_DEBUG(Network, "Couldn't find selected interface \"{}\"", selected_network_interface); + // Only print the error once to avoid log spam + static bool print_error = true; + if (print_error) { + LOG_ERROR(Network, "Couldn't find selected interface \"{}\"", + selected_network_interface); + print_error = false; + } + return std::nullopt; } |