Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Python Logging API Change #4923

Merged
merged 10 commits into from Oct 5, 2020
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -94,6 +94,10 @@ Fixed
* Fixed a regression in the ``linux.dig`` action on Python 3. (bug fix) #4993

Contributed by @blag
* Fixed a compatibility issue with the latest version of the ``logging`` library API
where the ``find_caller()`` function introduced some new variables. (bug fix)
nmaludy marked this conversation as resolved.
Show resolved Hide resolved

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