Skip to content

Fixes Python Logging API Change #4923

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

Merged
merged 10 commits into from
Oct 5, 2020
2 changes: 1 addition & 1 deletion st2common/st2common/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
_srcfile = get_normalized_file_path(__file__)


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