diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3393dbe40d..4b119fb183 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 ~~~~~~~ diff --git a/st2common/st2common/log.py b/st2common/st2common/log.py index a599fe81a6..5248ec8969 100644 --- a/st2common/st2common/log.py +++ b/st2common/st2common/log.py @@ -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.