mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-01-28 16:41:23 -05:00
Printing own port
This commit is contained in:
committed by
Romuald Bierbasz
parent
f283c10a95
commit
68fdc4d188
@@ -346,6 +346,8 @@ def create_and_run_plugin(plugin_class, argv):
|
||||
|
||||
async def coroutine():
|
||||
reader, writer = await asyncio.open_connection("127.0.0.1", port)
|
||||
extra_info = writer.get_extra_info('sockname')
|
||||
logging.info("Using local address: %s:%u", *extra_info)
|
||||
plugin = plugin_class(reader, writer, token)
|
||||
await plugin.run()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user