comparison sat/plugins/plugin_dbg_manhole.py @ 3082:9211c0d8b50c

plugin manhole: fixed default value
author Goffi <goffi@goffi.org>
date Fri, 06 Dec 2019 15:19:31 +0100
parents ab2696e34d29
children 2b0f739f8a46
comparison
equal deleted inserted replaced
3081:fd593b448bee 3082:9211c0d8b50c
43 43
44 class Manhole(object): 44 class Manhole(object):
45 45
46 def __init__(self, host): 46 def __init__(self, host):
47 self.host = host 47 self.host = host
48 port = int(host.memory.getConfig(None, "manhole_debug_dangerous_port_int")) 48 port = int(host.memory.getConfig(None, "manhole_debug_dangerous_port_int", 0))
49 if port: 49 if port:
50 self.startManhole(port) 50 self.startManhole(port)
51 51
52 def startManhole(self, port): 52 def startManhole(self, port):
53 log.warning(_("/!\\ Manhole debug server activated, be sure to not use it in " 53 log.warning(_("/!\\ Manhole debug server activated, be sure to not use it in "