You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
306 B
17 lines
306 B
#!/usr/bin/env python3
|
|
"""Simple plugin to log the connected_hook.
|
|
|
|
"""
|
|
|
|
from pyln.client import Plugin
|
|
|
|
plugin = Plugin()
|
|
|
|
|
|
@plugin.hook('peer_connected')
|
|
def on_connected(peer, plugin, **kwargs):
|
|
print("peer_connected_logger_a {}".format(peer['id']))
|
|
return {'result': 'continue'}
|
|
|
|
|
|
plugin.run()
|
|
|