server: use a warning when disconnecting unresponsive client

The debug level is not visible by default, since it is an unsolicited
server behaviour, make it a warning.
This commit is contained in:
Marc-André Lureau 2014-05-15 13:39:13 +02:00
parent 719764f7ad
commit 8904dfc768

View File

@ -824,8 +824,8 @@ static void red_channel_client_connectivity_timer(void *opaque)
rcc->connectivity_monitor.timeout);
} else {
monitor->state = CONNECTIVITY_STATE_DISCONNECTED;
spice_debug("rcc %p has not been responsive for more than %u ms, disconnecting",
rcc, monitor->timeout);
spice_warning("rcc %p on channel %d:%d has been unresponsive for more than %u ms, disconnecting",
rcc, rcc->channel->type, rcc->channel->id, monitor->timeout);
red_channel_client_disconnect(rcc);
}
}