Commit 6e101488 authored by segfault's avatar segfault

Add pause for debugging

parent 8bafb574
......@@ -7,6 +7,7 @@ from contextlib import contextmanager
from collections import OrderedDict
from onionkit import _
from onionkit import DEBUG
from onionkit.dbus.object import DBusObject
from onionkit.service_status import Status
from onionkit.mountpoint import MountPoint
......@@ -219,8 +220,11 @@ class OnionService(DBusObject, metaclass=abc.ABCMeta):
self.tor.start_hidden_service(self.private_key.read(), self.Address, self.virtual_port, self.port)
self.Status = Status.RUNNING
except Exception:
except Exception as e:
logger.warning("Handling error in service.Start")
if DEBUG:
logger.exception(e)
input("Paused to allow debugging. Press Enter to continue")
if self.IsRunning:
self.systemd.stop()
if self.IsPublished:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment