4 ms·
Good question. If the function is launched in a spawned process, it'll work, though you might have trouble getting the stderr, so you better include a log file
by cool-RR 7y ago
Good question.
If the function is launched in a spawned process, it'll work, though you might have trouble getting the stderr, so you better include a log file as the first argument, like this `@snoop('/var/log/snoop.log')`
If the function launches new processes internally... I'm not sure.
If you try it and it doesn't work, open an issue: https://github.com/cool-RR/PySnooper/issues https://github.com/cool-RR/PySnooper/issues
- sametmax 7y agoThere is a race condition when writting on the same log file from several processes at the same time, which is a typical use case for wsgi frameworks such as django or flask.