Skip to content

Commit

Permalink
logging: small optimization
Browse files Browse the repository at this point in the history
All fibers have a name so no need to compute the objref() for a
Fiber as the default.
  • Loading branch information
geertj committed Jun 6, 2017
1 parent 8f5e3af commit e17957f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gruvi/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def thread_info(self):
if tid == 'MainThread':
tid = 'Main'
current = fibers.current()
fid = getattr(current, 'name', util.objref(current)) if current.parent else 'Root'
fid = getattr(current, 'name') if current.parent else 'Root'
return '{}/{}'.format(tid, fid)

def frame_info(self):
Expand Down

0 comments on commit e17957f

Please sign in to comment.