Skip to content

Commit 1ae6716

Browse files
committed
debug: include the time in the sys debug output
1 parent 97091ea commit 1ae6716

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coverage/control.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import atexit
99
import collections
1010
import contextlib
11+
import datetime
1112
import functools
1213
import os
1314
import os.path
@@ -1396,6 +1397,7 @@ def plugin_info(plugins: list[Any]) -> list[str]:
13961397
("path", sys.path),
13971398
("environment", [f"{k} = {v}" for k, v in relevant_environment_display(os.environ)]),
13981399
("command_line", " ".join(getattr(sys, "argv", ["-none-"]))),
1400+
("time", f"{datetime.datetime.now():%Y-%m-%d %H:%M:%S}"),
13991401
]
14001402

14011403
if self._inorout is not None:

0 commit comments

Comments
 (0)