From 2f8ca3dce563214a64c0c2b8d1a7af15f0e4ca50 Mon Sep 17 00:00:00 2001 From: Domen <13206830+domen13@users.noreply.github.com> Date: Thu, 6 Jan 2022 14:24:53 +0100 Subject: [PATCH] Add stacklevel argument to findCaller() --- logging_exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging_exceptions.py b/logging_exceptions.py index 690ffb3..715c8d8 100644 --- a/logging_exceptions.py +++ b/logging_exceptions.py @@ -63,7 +63,7 @@ def __init__(self, name, level=logging.NOTSET): super(ExlogLogger, self).__init__(name, level) self.ignored_functions = [] - def findCaller(self, stack_info=False): + def findCaller(self, stack_info=False, stacklevel=1): """ Modified copy of the original logging.Logger.findCaller function.