mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Added logging exception to except Exception block
This commit is contained in:
parent
8c6acd173e
commit
40ccf0f9f4
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user