Merge pull request #49471 from Ch3LL/debug_sigusr1

Remove string conversion on frame object in sigusr1 handler
This commit is contained in:
Mike Place 2018-09-02 12:05:12 -06:00 committed by GitHub
commit 43ead5d1bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ def _handle_sigusr1(sig, stack):
filename = 'salt-debug-{0}.log'.format(int(time.time())) filename = 'salt-debug-{0}.log'.format(int(time.time()))
destfile = os.path.join(tempfile.gettempdir(), filename) destfile = os.path.join(tempfile.gettempdir(), filename)
with salt.utils.files.fopen(destfile, 'w') as output: with salt.utils.files.fopen(destfile, 'w') as output:
_makepretty(output, salt.utils.stringutils.to_str(stack)) _makepretty(output, stack)
def _handle_sigusr2(sig, stack): def _handle_sigusr2(sig, stack):