Skip to content

Commit b1405b7

Browse files
committed
Plain server starting with single log line
1 parent 5ecc6bb commit b1405b7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

plain/plain/server/arbiter.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ def start(self) -> None:
111111
"""\
112112
Initialize the arbiter. Start listening and set pidfile if needed.
113113
"""
114-
self.log.info("Starting plain server %s", plain.runtime.__version__)
115-
116114
self.pid: int = os.getpid()
117115
if self.cfg.pidfile is not None:
118116
self.pidfile = Pidfile(self.cfg.pidfile)
@@ -124,9 +122,13 @@ def start(self) -> None:
124122
self.LISTENERS = sock.create_sockets(self.cfg, self.log)
125123

126124
listeners_str = ",".join([str(lnr) for lnr in self.LISTENERS])
127-
self.log.debug("Arbiter booted")
128-
self.log.info("Listening at: %s (%s)", listeners_str, self.pid)
129-
self.log.info("Using worker: %s", self.cfg.worker_class_str)
125+
self.log.info(
126+
"Plain server started address=%s pid=%s worker=%s version=%s",
127+
listeners_str,
128+
self.pid,
129+
self.cfg.worker_class_str,
130+
plain.runtime.__version__,
131+
)
130132

131133
# check worker class requirements
132134
if hasattr(self.worker_class, "check_config"):

0 commit comments

Comments
 (0)