summaryrefslogtreecommitdiff
path: root/nemesis/nemesis.py
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-11-19 01:08:06 -0500
committerbd <bdunahu@operationnull.com>2025-11-19 01:08:06 -0500
commit61c35f0bc0b3fe598a06a2a63a6b3fa26802add2 (patch)
tree485b2a57e9ce7428825a0c5d45ef71d351c6e20b /nemesis/nemesis.py
parentdf45e4380bd325c333ccdd48771b4ceaf36ff4c4 (diff)
add logger, provide loop factory rather than default loop policy
Diffstat (limited to 'nemesis/nemesis.py')
-rwxr-xr-xnemesis/nemesis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nemesis/nemesis.py b/nemesis/nemesis.py
index 7eed743..6d2941c 100755
--- a/nemesis/nemesis.py
+++ b/nemesis/nemesis.py
@@ -128,7 +128,7 @@ class Nemesis(object):
loops = Nemesis._get_event_loops()
for loop in loops:
if not isinstance(loop, CausalEventLoop):
- raise RuntimeError("Nemesis requires a custom event loop to insert slowdowns. It does not work on programs which change the event loop policy.")
+ raise RuntimeError(f"Nemesis requires a custom event loop to insert slowdowns. You must start the event loop with `asyncio.run(your_coro(), loop_factory=causal_loop_factory)'.")
loop.set_speedup(speedup)
Nemesis.experiment_data = Experiment(loops)