Commit 29a6f68
authored
trace log both current and prior plugin hash values (#20759)
I was debugging an issue where cache entries were being invalidated due
to a plugin hash not matching. It would have helped a little to have
both hashes listed so I could see which plugin didn't match and have the
hash to go hunt down the problem file on my workstation.
In this repo, first run (no cache):
```
$ mypy --config-file mypy_self_check.ini -vv mypy 2> l
Success: no issues found in 190 source files
(.venv) ecsb@fw16 ~/src/o/c-mypy (cbs/hash-debug) $ grep Plugin l
TRACE: Plugins snapshot (fresh) {"mypy.plugins.proper_plugin": "none:4449d775ee477b70f3e3ad7268db2128dae4324d"}
```
Second run:
```
$ mypy --config-file mypy_self_check.ini -vv mypy 2> l2
Success: no issues found in 190 source files
$ grep Plugin l2
TRACE: Plugins snapshot (cached) {"mypy.plugins.proper_plugin":"none:4449d775ee477b70f3e3ad7268db2128dae4324d"}
TRACE: Plugins snapshot (fresh) {"mypy.plugins.proper_plugin": "none:4449d775ee477b70f3e3ad7268db2128dae4324d"}
```1 parent 1be60fe commit 29a6f68
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
| 851 | + | |
| 852 | + | |
851 | 853 | | |
852 | 854 | | |
853 | 855 | | |
| |||
1355 | 1357 | | |
1356 | 1358 | | |
1357 | 1359 | | |
1358 | | - | |
| 1360 | + | |
1359 | 1361 | | |
1360 | 1362 | | |
1361 | 1363 | | |
| |||
0 commit comments