Demote network error message to info log level
This message in particular tends to happen when quitting the game during the MP replay phase. Having pending incoming data at exit seems par for the course, so it might be best to keep normal users from seeing this message in stderr.
This commit is contained in:
parent
f6c77b7dd8
commit
daa045026f
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
|
||||
static lg::log_domain log_network("network");
|
||||
#define LOG_NW LOG_STREAM(info, log_network)
|
||||
#define ERR_NW LOG_STREAM(err, log_network)
|
||||
|
||||
void playturn_network_adapter::read_from_network()
|
||||
|
@ -128,7 +129,7 @@ playturn_network_adapter::~playturn_network_adapter()
|
|||
try {
|
||||
if(!is_at_end())
|
||||
{
|
||||
ERR_NW << "Destroying playturn_network_adapter with an non empty buffer, this means loss of network data" << std::endl;
|
||||
LOG_NW << "Destroying playturn_network_adapter with an non empty buffer, this means loss of network data" << std::endl;
|
||||
}
|
||||
} catch (...) {}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue