Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
getLogger should be called after logging is configured
logging needs to be setup properly before we try to log
something. Fixed one spot from logging->LOG

Fixes LP# 1161038

Change-Id: I87743cff9062e47c1d5e989c2c0c05c3921b65c7
(cherry picked from commit 3a106f7)
  • Loading branch information
Davanum Srinivas authored and Chuck Short committed Apr 11, 2013
1 parent fed7c92 commit ba41b68
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 ba41b68

Please sign in to comment.