Merge "Improve logging"

This commit is contained in:
Zuul 2018-06-18 19:46:32 +00:00 committed by Gerrit Code Review
commit f5c8c0cd39
3 changed files with 7 additions and 6 deletions

View File

@ -98,10 +98,11 @@ class ZmqClient(object):
no_daemon = True
LOG.debug("Attempting to start vBMC daemon behind the "
"scenes...")
LOG.debug("Please, configure your system to manage vbmcd "
"by systemd!")
LOG.debug("Attempting to start `vbmcd` behind the "
"scenes. Consider configuring your system to "
"manage `vbmcd` via systemd. Automatic "
"`vbmcd` start up will be removed in the "
"future releases!")
# attempt to start and daemonize the server
if os.fork() == 0:

View File

@ -70,7 +70,7 @@ def main(argv=sys.argv[1:]):
func()
except Exception as e:
LOG.error('%(error)s. ', {'error': e})
LOG.error('%(error)s', {'error': e})
return 1
finally:

View File

@ -196,7 +196,7 @@ class VirtualBMCManager(object):
if instance and not instance.is_alive():
del self._running_domains[domain_name]
LOG.info(
LOG.debug(
'Reaped vBMC instance for domain %(domain)s '
'(rc %(rc)s)' % {'domain': domain_name,
'rc': instance.exitcode}