diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-01-27 11:49:17 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-01-27 11:49:17 +0100 |
commit | 184189f0a535996edca01a68182ed07d32e26e9c (patch) | |
tree | 953181e7e62195476ef0dfcf4cb5e77160c664d1 /crocoite | |
parent | 0af80da0b506a06593c81d3686e91b8b82a4f3ba (diff) | |
download | crocoite-184189f0a535996edca01a68182ed07d32e26e9c.tar.gz crocoite-184189f0a535996edca01a68182ed07d32e26e9c.tar.bz2 crocoite-184189f0a535996edca01a68182ed07d32e26e9c.zip |
Support manhole debugging
Add optional support for manhole to all cli tools. Activated by signal
USR1.
Diffstat (limited to 'crocoite')
-rw-r--r-- | crocoite/cli.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crocoite/cli.py b/crocoite/cli.py index be3538a..4ab2334 100644 --- a/crocoite/cli.py +++ b/crocoite/cli.py @@ -25,6 +25,11 @@ Command line interface import argparse, sys, signal, asyncio, os from enum import IntEnum from yarl import URL +try: + import manhole + manhole.install (patch_fork=False, oneshot_on='USR1') +except ModuleNotFoundError: + pass from . import behavior from .controller import SinglePageController, \ |