Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 17, 2022. It is now read-only.

Commit cebf585

Browse files
committed
Fix call to process.ppid(), shorted startup message
1 parent af15460 commit cebf585

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

supermann/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def __init__(self, host=None, port=None):
3333
# started up and which supervisord instance it is running under
3434
process = psutil.Process(os.getpid())
3535
self.log.info("This looks like a job for Supermann!")
36-
self.log.info("Supermann process PID is: {0}".format(process.pid))
37-
self.log.info("Parent process PID is: {0}".format(process.ppid))
36+
self.log.info("Process PID is {0}, running under {1}".format(
37+
process.pid, process.ppid()))
3838

3939
# The Supervisor listener and client take their configuration from
4040
# the environment variables provided by Supervisor

0 commit comments

Comments
 (0)