Improve logging

This is a followup patch to [1] addressing minor
fixes and improvements in the area of logging.

1. https://review.openstack.org/#/c/488874

Change-Id: I6c703b35c32644d8769a863fbe7940a002a185f0
This commit is contained in:
Ilya Etingof 2018-06-15 14:36:15 +02:00
parent 7ace4293e9
commit bbfa16cf0f
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}