Skip to content

Commit

Permalink
deal with current bug with extra argument of logging
Browse files Browse the repository at this point in the history
  • Loading branch information
stoiveroberts committed Dec 20, 2022
1 parent e9cc8e2 commit edde8e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anuga/utilities/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def current_datetime():
_new_python = (sys.version_info[0]*10 + sys.version_info[1] >= 25) # 2.5.x.x



################################################################################
# Module code.
################################################################################
Expand Down Expand Up @@ -158,7 +159,9 @@ def log(msg, level=None):

# why are we here? ... Oh yes! Log the message!
if _new_python:
logging.log(level, msg, extra={'mname': fname, 'lnum': lnum})
#FIXME SR: On 2022/12/20 got an error due to the extra argument
#logging.log(level, msg, extra={'mname': fname, 'lnum': lnum})
logging.log(level, msg)
else:
logging.log(level, msg)

Expand Down

0 comments on commit edde8e1

Please sign in to comment.