Skip to content

Commit

Permalink
Merge pull request #5 from DougMahoney/patch-1
Browse files Browse the repository at this point in the history
Update logging.py
  • Loading branch information
null-directory committed Dec 3, 2021
2 parents bb82ad2 + bbd6446 commit 771cce0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions shared/tools/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ def _getScope(self, context=None):
try:
return context.__init__.im_func.func_code.co_filename
except:
return context.func_code.co_filename
try:
return context.func_code.co_filename
except:
return repr(context)
if isinstance(context, (JavaClass, JavaObject)):
type_path = repr(context)
if type_path.startswith('<type '):
Expand Down Expand Up @@ -418,4 +421,4 @@ def messageHandler(cls, payload):
level = payload['level']
loggerName = payload['loggerName']

getattr(system.util.getLogger(loggerName), level)(message)
getattr(system.util.getLogger(loggerName), level)(message)

0 comments on commit 771cce0

Please sign in to comment.