self._log -> self.log

This commit is contained in:
Sybren A. Stüvel 2017-01-18 12:50:50 +01:00
parent e39429272d
commit d5f285a381
2 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ class FLAMENCO_OT_fmanagers(async_loop.AsyncModalOperatorMixin,
bl_label = 'Fetch available Flamenco Managers'
stop_upon_exception = True
_log = logging.getLogger('bpy.ops.%s' % bl_idname)
log = logging.getLogger('%s.FLAMENCO_OT_fmanagers' % __name__)
@property
def mypref(self) -> FlamencoManagerGroup:
@ -122,7 +122,7 @@ class FLAMENCO_OT_render(async_loop.AsyncModalOperatorMixin,
bl_description = __doc__.rstrip('.')
stop_upon_exception = True
_log = logging.getLogger('bpy.ops.%s' % bl_idname)
log = logging.getLogger('%s.FLAMENCO_OT_render' % __name__)
async def async_execute(self, context):
if not await self.authenticate(context):

View File

@ -850,13 +850,13 @@ class AuthenticatedPillarOperatorMixin(PillarOperatorMixin):
async def authenticate(self, context) -> bool:
from . import pillar
self._log.info('Checking credentials')
self.log.info('Checking credentials')
self.user_id = None
self.db_user = None
try:
self.db_user = await self.check_credentials(context, ())
except pillar.UserNotLoggedInError as ex:
self._log.info('Not logged in error raised: %s', ex)
self.log.info('Not logged in error raised: %s', ex)
self.report({'ERROR'}, 'Please log in on Blender ID first.')
self.quit()
return False