2 ms·
I use greppable strings explicitly, like requests.get(f'http://a.b.c.d/wol?device={wol_computer}&grep-id=wake-on-lan', timeout=3) This way I find `grep-id`
by qwertox 2y ago
I use greppable strings explicitly, like
requests.get(f'http://a.b.c.d/wol?device={wol_computer}&grep-id=wake-on-lan', timeout=3)
This way I find `grep-id` in the server logs as a reminder of what to grep for, then `grep-id=wake-on-lan` in the entire codebase to find the actual source of the call.
Or I add comments with a grepable token to the code.