Skip to content

Commit

Permalink
Merge "getLogger should be called after logging is configured"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Mar 29, 2013
2 parents 466e822 + 3a106f7 commit b7986d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/cinder-all
Expand Up @@ -46,18 +46,18 @@ from cinder import service
from cinder import utils


LOG = logging.getLogger('cinder.all')

if __name__ == '__main__':
flags.parse_args(sys.argv)
logging.setup("cinder")
LOG = logging.getLogger('cinder.all')

utils.monkey_patch()
servers = []
# cinder-api
try:
servers.append(service.WSGIService('osapi_volume'))
except (Exception, SystemExit):
logging.exception(_('Failed to load %s') % '%s-api' % api)
LOG.exception(_('Failed to load osapi_volume'))

for binary in ['cinder-volume', 'cinder-scheduler']:
try:
Expand Down

0 comments on commit b7986d0

Please sign in to comment.