← Back to team overview

openstack team mailing list archive

How to get debug logs in Openstack Cinder


Hi all,

I add some print logs for cinder/cinder/volume/drivers/sheepdog.py
like following.

 57     def create_volume(self, volume):
 58         """Creates a sheepdog volume"""
 59         LOG.debug(_('999 volume name is %s') % volume['name'])
 60         self._try_execute('qemu-img', 'create',
 61                           "sheepdog:%s" % volume['name'],
 62                           '%sG' % volume['size'])

However, i could not catch this, LOG.debug(_('999 volume name is %s')
% volume['name']),
logs by 'screen -r'. How could i get the logs? Maybe i should print
logs with other formats, right?
Has anyone add print logs for openstack? Please give me some
suggestions. Thanks a lot ;-)

Harry Wei

Follow ups