mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Getting nightly builds running again for 3006.x
This commit is contained in:
parent
5e19e2db18
commit
c16232efad
1 changed files with 23 additions and 10 deletions
|
@ -280,6 +280,7 @@ class SaltLoggingClass(LOGGING_LOGGER_CLASS, metaclass=LoggingMixinMeta):
|
|||
else:
|
||||
extra["exc_info_on_loglevel"] = exc_info_on_loglevel
|
||||
|
||||
try:
|
||||
LOGGING_LOGGER_CLASS._log(
|
||||
self,
|
||||
level,
|
||||
|
@ -290,6 +291,18 @@ class SaltLoggingClass(LOGGING_LOGGER_CLASS, metaclass=LoggingMixinMeta):
|
|||
stack_info=stack_info,
|
||||
stacklevel=stacklevel,
|
||||
)
|
||||
except TypeError:
|
||||
# stacklevel was introduced in Py 3.8
|
||||
# must be running on old OS with Python 3.6 or 3.7
|
||||
LOGGING_LOGGER_CLASS._log(
|
||||
self,
|
||||
level,
|
||||
msg,
|
||||
args,
|
||||
exc_info=exc_info,
|
||||
extra=extra,
|
||||
stack_info=stack_info,
|
||||
)
|
||||
|
||||
def makeRecord(
|
||||
self,
|
||||
|
|
Loading…
Add table
Reference in a new issue