Skip to content

Commit e97263b

Browse files
committed
A stupid solution?
1 parent da719d6 commit e97263b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mypy/dmypy.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,16 @@ def do_restart(args: argparse.Namespace) -> None:
173173

174174
def restart_server(args: argparse.Namespace, allow_sources: bool = False) -> None:
175175
"""Restart daemon (it may or may not be running; but not hanging)."""
176+
with open(STATUS_FILE) as file:
177+
before = file.read()
176178
try:
177179
do_stop(args)
178180
except BadStatus:
179181
# Bad or missing status file or dead process; good to start.
180182
pass
181183
start_server(args, allow_sources)
184+
with open(STATUS_FILE) as file:
185+
print(f"before:{before} after:{file.read()}", file=sys.stderr)
182186

183187

184188
def start_server(args: argparse.Namespace, allow_sources: bool = False) -> None:

0 commit comments

Comments
 (0)