We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8708337 commit 9a86fe8Copy full SHA for 9a86fe8
1 file changed
watchdog/monitor.py
@@ -176,13 +176,13 @@ async def monitor_process(self, process_type: str):
176
timer = 0
177
178
if process is None or process.poll() is not None:
179
- warning(f"Process {process_type} is dead, restarting...")
180
- if process is not None and process.stderr is not None:
181
- error(
182
- f"Process {process_type} is dead, error: {process.stderr.read()}"
183
- )
184
self.stop_process(process_type)
185
self._start_process(process_type)
+ if process is not None and process.poll() is not None:
+ warning(f"Process {process_type} is dead, restarting...")
+ error(
+ f"{process.stderr.read() if process.stderr is not None else 'No stderr'}"
+ )
186
187
await asyncio.sleep(1)
188
0 commit comments