Skip to content

Commit

Permalink
Demote spurious network error message to info log level
Browse files Browse the repository at this point in the history
The following message:

    20160516 16:59:30 error network: Destroing playturn_network_adapter with an non empty buffer, this means loss of network data

More often than not, this comes up when performing normal actions that
involve an unexpected but normal quit from a network game (quitting back
to lobby, closing the game), and the 'error' label makes it seem like a
serious issue when it isn't.

Also fixed typos in it.
  • Loading branch information
irydacea committed May 16, 2016
1 parent 300a814 commit 050d182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/playturn_network_adapter.cpp
Expand Up @@ -12,6 +12,7 @@

static lg::log_domain log_network("network");
#define ERR_NW LOG_STREAM(err, log_network)
#define LOG_NW LOG_STREAM(info, log_network)

void playturn_network_adapter::read_from_network()
{
Expand Down Expand Up @@ -129,7 +130,7 @@ playturn_network_adapter::~playturn_network_adapter()
{
if(!is_at_end())
{
ERR_NW << "Destroing playturn_network_adapter with an non empty buffer, this means loss of network data\n";
LOG_NW << "Destroying playturn_network_adapter with an non-empty buffer, this means loss of network data\n";
}
}

Expand Down

0 comments on commit 050d182

Please sign in to comment.