Skip to content

Commit

Permalink
Merge pull request #4923 from Dahfizz9897/fix_logging
Browse files Browse the repository at this point in the history
Fixes Python Logging API Change
  • Loading branch information
nmaludy committed Oct 5, 2020
2 parents 14d280d + a70b835 commit 40fd844
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -98,6 +98,10 @@ Fixed
interpolated properly. (bug fix)

Contributed by @misterpah
* Fixed a compatibility issue with the latest version of the ``logging`` library API
where the ``find_caller()`` function introduced some new variables. (bug fix) #4923

Contributed by @Dahfizz9897

Removed
~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion st2common/st2common/log.py
Expand Up @@ -69,7 +69,7 @@
_srcfile = get_normalized_file_path(__file__)


def find_caller(stack_info=None):
def find_caller(*args, **kwargs):
"""
Find the stack frame of the caller so that we can note the source file name, line number and
function name.
Expand Down

0 comments on commit 40fd844

Please sign in to comment.