kete: improve some messaging

In the normal mode (without -v) we'd see the errors, but not the messages when
we reconnect. Elevate the "connected to" message to info so it shows up.

And slight rewording, which may or may not be better.
This commit is contained in:
Peter Hutterer 2018-02-02 08:27:23 +10:00
parent 3e444d6a0c
commit 1f93db6ca0
1 changed files with 3 additions and 3 deletions

View File

@ -584,14 +584,14 @@ class TuhiKeteShell(cmd.Cmd):
return names
def _on_name_appeared(self, connection, name, client):
logger.debug('Tuhi daemon is up and running')
logger.info('Connected to the Tuhi daemon')
self._manager = TuhiKeteManager()
def _on_name_vanished(self, connection, name):
if self._manager is not None:
logger.error('Tuhi daemon went away')
logger.error('Tuhi daemon has quit')
else:
logger.warning('Tuhi daemon not started')
logger.warning('Tuhi daemon not running')
self.terminate_workers()
if self._manager is not None:
self._manager.terminate()