Skip to content

Commit 40fd844

Browse files
authored
Merge pull request #4923 from Dahfizz9897/fix_logging
Fixes Python Logging API Change
2 parents 14d280d + a70b835 commit 40fd844

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ Fixed
9898
interpolated properly. (bug fix)
9999

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

102106
Removed
103107
~~~~~~~

st2common/st2common/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
_srcfile = get_normalized_file_path(__file__)
7070

7171

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

0 commit comments

Comments
 (0)