mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Added debugging info
This commit is contained in:
parent
eb07f58277
commit
01a44b41f8
1 changed files with 20 additions and 0 deletions
|
@ -1018,6 +1018,13 @@ class Process(multiprocessing.Process):
|
||||||
# Run any registered process finalization routines
|
# Run any registered process finalization routines
|
||||||
try:
|
try:
|
||||||
for method, args, kwargs in self._finalize_methods:
|
for method, args, kwargs in self._finalize_methods:
|
||||||
|
# pylint: disable=logging-fstring-interpolation
|
||||||
|
log.warning(
|
||||||
|
f"DGM class Process wrapped_run_func, method '{method}', args '{args}', kwargs '{kwargs}'"
|
||||||
|
)
|
||||||
|
print(
|
||||||
|
f"DGM class Process wrapped_run_func, method '{method}', args '{args}', kwargs '{kwargs}'"
|
||||||
|
)
|
||||||
try:
|
try:
|
||||||
method(*args, **kwargs)
|
method(*args, **kwargs)
|
||||||
except Exception: # pylint: disable=broad-except
|
except Exception: # pylint: disable=broad-except
|
||||||
|
@ -1050,8 +1057,21 @@ class Process(multiprocessing.Process):
|
||||||
"""
|
"""
|
||||||
Register a function to run as process terminates
|
Register a function to run as process terminates
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=logging-fstring-interpolation
|
||||||
|
log.warning(
|
||||||
|
f"DGM class Process register_finalize_method entry, function '{function}', args '{args}', kwargs '{kwargs}'"
|
||||||
|
)
|
||||||
|
print(
|
||||||
|
f"DGM class Process register_finalize_method entry, function '{function}', args '{args}', kwargs '{kwargs}'"
|
||||||
|
)
|
||||||
finalize_method_tuple = (function, args, kwargs)
|
finalize_method_tuple = (function, args, kwargs)
|
||||||
if finalize_method_tuple not in self._finalize_methods:
|
if finalize_method_tuple not in self._finalize_methods:
|
||||||
|
log.warning(
|
||||||
|
f"DGM register_finalize_method, appending tuple finalize_method_tuple '{finalize_method_tuple}'"
|
||||||
|
)
|
||||||
|
print(
|
||||||
|
f"DGM register_finalize_method, appending tuple finalize_method_tuple '{finalize_method_tuple}'"
|
||||||
|
)
|
||||||
self._finalize_methods.append(finalize_method_tuple)
|
self._finalize_methods.append(finalize_method_tuple)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue