Commit 7e3e4c7
authored
Defer pottery import in reconciler to suppress monkey-patch message (#2132)
After 87c58c3, the pottery top-level import in utils/__init__.py was
moved into create_redlock() with stdout/stderr suppression. This made
reconciler.py the first module to import pottery (without suppression),
causing the "Monkey patched json.dumps()" message to appear on every
CLI invocation. Move the import into the functions where it's used,
after create_redlock() has already cached pottery in sys.modules.
AI-assisted: Claude Code
Signed-off-by: Christian Berendt <berendt@osism.tech>1 parent f641432 commit 7e3e4c7
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
0 commit comments