From 40ccf0f9f46b504e695ea60ceebd5682376bcef8 Mon Sep 17 00:00:00 2001 From: Seth House Date: Thu, 1 Nov 2012 09:46:04 -0600 Subject: [PATCH] Added logging exception to except Exception block --- salt/utils/process.py | 1 + 1 file changed, 1 insertion(+) diff --git a/salt/utils/process.py b/salt/utils/process.py index eea075b40e..d6efb71d87 100644 --- a/salt/utils/process.py +++ b/salt/utils/process.py @@ -39,6 +39,7 @@ def set_pidfile(pidfile, user): os.chown(pidfile, uid, gid) except Exception as e: msg = ('Failed to set the pid to user {0}').format(user) + log.debug(msg, exc_info=True) sys.stderr.write(msg) sys.exit(e.errno) log.debug(('Chowned pidfile: {0} to user: {1}').format(pidfile, user))